add CountSectorTags/CountSectorTags/CountLineIDs/GetLineID
This commit is contained in:
parent
239a288a9a
commit
793d6af5d1
4 changed files with 144 additions and 0 deletions
|
|
@ -1139,6 +1139,29 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
|||
ACTION_RETURN_INT(self->e->XFloor.attached.Size());
|
||||
}
|
||||
|
||||
static int CountSectorTags(const sector_t *self)
|
||||
{
|
||||
return level.tagManager.CountSectorTags(self);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Sector, CountTags, CountSectorTags)
|
||||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(sector_t);
|
||||
ACTION_RETURN_INT(level.tagManager.CountSectorTags(self));
|
||||
}
|
||||
|
||||
static int GetSectorTag(const sector_t *self, int index)
|
||||
{
|
||||
return level.tagManager.GetSectorTag(self, index);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Sector, GetTag, GetSectorTag)
|
||||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(sector_t);
|
||||
PARAM_INT(index);
|
||||
ACTION_RETURN_INT(level.tagManager.GetSectorTag(self, index));
|
||||
}
|
||||
|
||||
static int Get3DFloorTexture(F3DFloor *self, int pos)
|
||||
{
|
||||
if ( pos )
|
||||
|
|
@ -1240,6 +1263,29 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
|||
ACTION_RETURN_INT(LineIndex(self));
|
||||
}
|
||||
|
||||
static int CountLineIDs(const line_t *self)
|
||||
{
|
||||
return level.tagManager.CountLineIDs(self);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Line, CountIDs, CountLineIDs)
|
||||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(line_t);
|
||||
ACTION_RETURN_INT(level.tagManager.CountLineIDs(self));
|
||||
}
|
||||
|
||||
static int GetLineID(const line_t *self, int index)
|
||||
{
|
||||
return level.tagManager.GetLineID(self, index);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Line, GetID, GetLineID)
|
||||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(line_t);
|
||||
PARAM_INT(index);
|
||||
ACTION_RETURN_INT(level.tagManager.GetLineID(self, index));
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// side_t exports
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue