mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 16:11:23 +00:00
Added Method For Getting Portal Group Count
This commit is contained in:
parent
ad80593cb7
commit
964534f4b0
2 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue