diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-01 12:58:15 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-07 19:26:33 +0200 |
commit | 883e8390c95fbabad9d0e66c7f68d448bf96bf40 (patch) | |
tree | 0eb4d85da5d49a53616a81ef94be33fe1691c576 /src/control/Script.h | |
parent | mission replay (diff) | |
download | re3-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.h | 13 |
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]; |