mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- exported the base thinker class for sector lighting effects to ZScript.
This commit is contained in:
parent
d74b6a6896
commit
0cfdd699ad
3 changed files with 17 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue