Added Method For Getting Portal Group Count

This commit is contained in:
Boondorl 2022-11-25 11:39:27 -05:00 committed by Christoph Oelckers
parent ad80593cb7
commit 964534f4b0
2 changed files with 7 additions and 0 deletions

View File

@ -2436,6 +2436,12 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, GetDisplacement)
ACTION_RETURN_VEC2(ofs);
}
DEFINE_ACTION_FUNCTION(FLevelLocals, GetPortalGroupCount)
{
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
ACTION_RETURN_INT(self->Displacements.size);
}
void SphericalCoords(FLevelLocals *self, double vpX, double vpY, double vpZ, double tX, double tY, double tZ, double viewYaw, double viewPitch, int absolute, DVector3 *result)
{

View File

@ -492,6 +492,7 @@ struct LevelLocals native
native clearscope vector3 Vec2OffsetZ(vector2 pos, vector2 dir, double atz, bool absolute = false) const;
native clearscope vector3 Vec3Offset(vector3 pos, vector3 dir, bool absolute = false) const;
native clearscope Vector2 GetDisplacement(int pg1, int pg2) const;
native clearscope int GetPortalGroupCount() const;
native String GetChecksum() const;