summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-01 12:58:15 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-07 19:26:33 +0200
commit883e8390c95fbabad9d0e66c7f68d448bf96bf40 (patch)
tree0eb4d85da5d49a53616a81ef94be33fe1691c576 /src/control/Script.h
parentmission replay (diff)
downloadre3-883e8390c95fbabad9d0e66c7f68d448bf96bf40.tar
re3-883e8390c95fbabad9d0e66c7f68d448bf96bf40.tar.gz
re3-883e8390c95fbabad9d0e66c7f68d448bf96bf40.tar.bz2
re3-883e8390c95fbabad9d0e66c7f68d448bf96bf40.tar.lz
re3-883e8390c95fbabad9d0e66c7f68d448bf96bf40.tar.xz
re3-883e8390c95fbabad9d0e66c7f68d448bf96bf40.tar.zst
re3-883e8390c95fbabad9d0e66c7f68d448bf96bf40.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 8c014a0f..22642537 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -444,6 +444,13 @@ public:
#ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
int CollectParameterForDebug(char* buf, bool& var);
void GetStoredParameterForDebug(char* buf);
+ void LogOnStartProcessing();
+ void LogBeforeProcessingCommand(int32 command);
+ void LogAfterProcessingCommand(int32 command);
+
+ static char commandInfo[];
+ static uint32 storedIp;
+
#endif
float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; }
@@ -661,6 +668,12 @@ public:
#endif
static bool IsFortStauntonDestroyed() { return FSDestroyedFlag && *(int32*)&ScriptSpace[FSDestroyedFlag] == 1; }
+
+#ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
+ static void LogAfterScriptInitializing();
+ static void LogBeforeScriptProcessing();
+ static void LogAfterScriptProcessing();
+#endif
};
extern int ScriptParams[32];