mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-17 08:21:28 +00:00
Add GetSector() to the SectorEffect class, allowing read-only access to its m_Sector variable to outside objects.
This commit is contained in:
parent
8cfb1cba7c
commit
d7521c1540
2 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,12 @@ void DSectorEffect::Serialize(FSerializer &arc)
|
|||
DEFINE_FIELD(DSectorEffect, m_Sector)
|
||||
|
||||
|
||||
DEFINE_ACTION_FUNCTION(DSectorEffect, GetSector)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(DSectorEffect);
|
||||
ACTION_RETURN_POINTER(self->m_Sector);
|
||||
}
|
||||
|
||||
IMPLEMENT_CLASS(DMover, true, true)
|
||||
|
||||
IMPLEMENT_POINTERS_START(DMover)
|
||||
|
|
|
@ -789,6 +789,8 @@ struct StringStruct native
|
|||
class SectorEffect : Thinker native
|
||||
{
|
||||
native protected Sector m_Sector;
|
||||
|
||||
native clearscope Sector GetSector();
|
||||
}
|
||||
|
||||
class Mover : SectorEffect native
|
||||
|
|
Loading…
Reference in a new issue