- exported the base thinker class for sector lighting effects to ZScript.

This commit is contained in:
Christoph Oelckers 2017-03-19 13:15:38 +01:00
parent d74b6a6896
commit 0cfdd699ad
3 changed files with 17 additions and 2 deletions

View file

@ -72,6 +72,9 @@ void DSectorEffect::Serialize(FSerializer &arc)
arc("sector", m_Sector); arc("sector", m_Sector);
} }
DEFINE_FIELD(DSectorEffect, m_Sector)
IMPLEMENT_CLASS(DMover, false, true) IMPLEMENT_CLASS(DMover, false, true)
IMPLEMENT_POINTERS_START(DMover) IMPLEMENT_POINTERS_START(DMover)

View file

@ -16,9 +16,11 @@ public:
sector_t *GetSector() const { return m_Sector; } sector_t *GetSector() const { return m_Sector; }
sector_t *m_Sector;
protected: protected:
DSectorEffect(); DSectorEffect();
sector_t *m_Sector;
}; };
class DMover : public DSectorEffect class DMover : public DSectorEffect

View file

@ -717,3 +717,13 @@ struct LookExParams
int flags; int flags;
State seestate; State seestate;
}; };
class SectorEffect : Thinker native
{
native protected Sector m_Sector;
}
class Lighting : SectorEffect native
{
}