- Hacked a level member into thinkers.

This commit is contained in:
drfrag 2020-10-10 10:47:06 +02:00
parent d764412121
commit 7137e39e0a
3 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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)

View file

@ -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);