summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-03 00:42:46 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-03 00:42:46 +0200
commitfa29804c49faf9135b8c1929cc49e201024521c6 (patch)
tree84fb89a9fee46631e7deba2697712f00dab69ea8 /src/control/Script.h
parentRevert "Disable PED_SKIN for now" (diff)
downloadre3-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.h14
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);