mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-04-22 23:50:58 +00:00
- Hacked a level member into thinkers.
This commit is contained in:
parent
d764412121
commit
7137e39e0a
3 changed files with 9 additions and 1 deletions
|
@ -61,6 +61,9 @@ struct FThinkerList
|
|||
DThinker *Sentinel;
|
||||
};
|
||||
|
||||
struct FLevelLocals;
|
||||
extern FLevelLocals level;
|
||||
|
||||
class DThinker : public DObject
|
||||
{
|
||||
DECLARE_CLASS (DThinker, DObject)
|
||||
|
@ -111,6 +114,9 @@ private:
|
|||
friend class FSerializer;
|
||||
|
||||
DThinker *NextThinker, *PrevThinker;
|
||||
|
||||
public:
|
||||
FLevelLocals *Level = &level;
|
||||
};
|
||||
|
||||
class FThinkerIterator
|
||||
|
|
|
@ -1764,6 +1764,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(APlayerPawn, GetPrintableDisplayName, GetPrintable
|
|||
|
||||
|
||||
|
||||
DEFINE_FIELD(DThinker, Level)
|
||||
DEFINE_FIELD(AActor, snext)
|
||||
DEFINE_FIELD(AActor, player)
|
||||
DEFINE_FIELD_NAMED(AActor, __Pos, pos)
|
||||
|
|
|
@ -504,7 +504,8 @@ class Thinker : Object native play
|
|||
MAX_STATNUM = 127
|
||||
}
|
||||
|
||||
|
||||
native LevelLocals Level; // hack hack
|
||||
|
||||
virtual native void Tick();
|
||||
virtual native void PostBeginPlay();
|
||||
native void ChangeStatNum(int stat);
|
||||
|
|
Loading…
Reference in a new issue