summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-08 10:41:39 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-08 10:41:39 +0100
commit236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e (patch)
treed5afc2aeff0ae8c1152fe999fa3dbd6d9b86e401 /src/control/Script.h
parentsync with upstream (diff)
downloadre3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.gz
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.bz2
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.lz
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.xz
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.zst
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index f35d0261..e4196220 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -216,9 +216,12 @@ public:
enum {
ARGUMENT_END = 0,
+ ARGUMENT_INT_ZERO,
+ ARGUMENT_FLOAT_ZERO,
+ ARGUMENT_FLOAT_1BYTE,
+ ARGUMENT_FLOAT_2BYTES,
+ ARGUMENT_FLOAT_3BYTES,
ARGUMENT_INT32,
- ARGUMENT_GLOBALVAR,
- ARGUMENT_LOCALVAR,
ARGUMENT_INT8,
ARGUMENT_INT16,
ARGUMENT_FLOAT
@@ -451,6 +454,8 @@ enum {
NUM_TIMERS = 2
};
+extern int ScriptParams[32];
+
class CRunningScript
{
enum {
@@ -512,7 +517,7 @@ public:
static const uint32 nSaveStructSize;
- void CollectParameters(uint32*, int16);
+ void CollectParameters(uint32*, int16, int* pParams = (int*)&ScriptParams);
int32 CollectNextParameterWithoutIncreasingPC(uint32);
int32* GetPointerToScriptVariable(uint32*, int16);
void StoreParameters(uint32*, int16);