summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-24 19:17:15 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-24 19:17:15 +0100
commit56c83dfaaebffc1eabec01671c2da892661059af (patch)
treee23ff527d9280b206aa3774576c47341539e1c26 /src/control/Script.h
parentMerge branch 'master' into script_dev (diff)
downloadre3-56c83dfaaebffc1eabec01671c2da892661059af.tar
re3-56c83dfaaebffc1eabec01671c2da892661059af.tar.gz
re3-56c83dfaaebffc1eabec01671c2da892661059af.tar.bz2
re3-56c83dfaaebffc1eabec01671c2da892661059af.tar.lz
re3-56c83dfaaebffc1eabec01671c2da892661059af.tar.xz
re3-56c83dfaaebffc1eabec01671c2da892661059af.tar.zst
re3-56c83dfaaebffc1eabec01671c2da892661059af.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 5533c417..18d148bf 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -83,6 +83,14 @@ struct CScriptSphere
float m_fRadius;
};
+struct CStoredLine
+{
+ CVector vecInf;
+ CVector vecSup;
+ uint32 color1;
+ uint32 color2;
+};
+
enum {
CLEANUP_UNUSED = 0,
CLEANUP_CAR,
@@ -217,7 +225,8 @@ enum {
MAX_NUM_USED_OBJECTS = 200,
MAX_NUM_MISSION_SCRIPTS = 120,
MAX_NUM_BUILDING_SWAPS = 25,
- MAX_NUM_INVISIBILITY_SETTINGS = 20
+ MAX_NUM_INVISIBILITY_SETTINGS = 20,
+ MAX_NUM_STORED_LINES = 1024
};
class CTheScripts
@@ -235,6 +244,7 @@ class CTheScripts
static int32(&MultiScriptArray)[MAX_NUM_MISSION_SCRIPTS];
static tBuildingSwap(&BuildingSwapArray)[MAX_NUM_BUILDING_SWAPS];
static CEntity*(&InvisibilitySettingArray)[MAX_NUM_INVISIBILITY_SETTINGS];
+ static CStoredLine(&aStoredLines)[MAX_NUM_STORED_LINES];
static bool &DbgFlag;
static uint32 &OnAMissionFlag;
static CMissionCleanup &MissionCleanup;
@@ -258,7 +268,7 @@ class CTheScripts
static uint16 &NumScriptDebugLines;
static uint16 &NumberOfIntroRectanglesThisFrame;
static uint16 &NumberOfIntroTextLinesThisFrame;
- static bool &UseTextCommands;
+ static uint8 &UseTextCommands;
static uint16 &CommandsExecuted;
static uint16 &ScriptsUpdated;
@@ -273,7 +283,7 @@ public:
static void UndoBuildingSwaps();
static void UndoEntityVisibilitySettings();
- static void ScriptDebugLine3D(float x1, float y1, float z1, float x2, float y2, float z2, int col, int col2);
+ static void ScriptDebugLine3D(float x1, float y1, float z1, float x2, float y2, float z2, uint32 col, uint32 col2);
static void RenderTheScriptDebugLines();
static void SaveAllScripts(uint8*, uint32*);