diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-03 01:42:46 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-03 01:42:46 +0300 |
commit | fa29804c49faf9135b8c1929cc49e201024521c6 (patch) | |
tree | 84fb89a9fee46631e7deba2697712f00dab69ea8 /src/control/Script.h | |
parent | 9d600802fa0673e8c834c623bd65adc1893c8bf1 (diff) |
script compatibility
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); |