mirror of
https://github.com/halpz/re3.git
synced 2025-05-10 14:26:38 +03:00
script compatibility
This commit is contained in:
parent
9d600802fa
commit
fa29804c49
2 changed files with 83 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue