diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-03 00:42:46 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-03 00:42:46 +0200 |
commit | fa29804c49faf9135b8c1929cc49e201024521c6 (patch) | |
tree | 84fb89a9fee46631e7deba2697712f00dab69ea8 /src/control/Script.h | |
parent | Revert "Disable PED_SKIN for now" (diff) | |
download | re3-fa29804c49faf9135b8c1929cc49e201024521c6.tar re3-fa29804c49faf9135b8c1929cc49e201024521c6.tar.gz re3-fa29804c49faf9135b8c1929cc49e201024521c6.tar.bz2 re3-fa29804c49faf9135b8c1929cc49e201024521c6.tar.lz re3-fa29804c49faf9135b8c1929cc49e201024521c6.tar.xz re3-fa29804c49faf9135b8c1929cc49e201024521c6.tar.zst re3-fa29804c49faf9135b8c1929cc49e201024521c6.zip |
Diffstat (limited to 'src/control/Script.h')
-rw-r--r-- | src/control/Script.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/control/Script.h b/src/control/Script.h index 2eed29fe..01cad269 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -423,14 +423,10 @@ class CRunningScript public: void SetIP(uint32 ip) { m_nIp = ip; } CRunningScript* GetNext() const { return next; } - void BuildFromSaved(const CRunningScript& pSaved) - { - CRunningScript* n = next; - CRunningScript* p = prev; - *this = pSaved; - next = n; - prev = p; - } + + void Save(uint8*& buf); + void Load(uint8*& buf); + void UpdateTimers(float timeStep) { m_anLocalVariables[NUM_LOCAL_VARS] += timeStep; m_anLocalVariables[NUM_LOCAL_VARS + 1] += timeStep; @@ -442,6 +438,8 @@ public: void RemoveScriptFromList(CRunningScript**); void AddScriptToList(CRunningScript**); + static const uint32 nSaveStructSize; + private: void CollectParameters(uint32*, int16); int32 CollectNextParameterWithoutIncreasingPC(uint32); |