move debug script stuff to a separate file

This commit is contained in:
Nikolay Korolev 2021-08-01 13:58:15 +03:00
parent a7e673c2ec
commit 6d7dec96af
3 changed files with 1462 additions and 1405 deletions

File diff suppressed because it is too large Load diff

View file

@ -370,6 +370,13 @@ public:
#ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT #ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
int CollectParameterForDebug(char* buf, bool& var); int CollectParameterForDebug(char* buf, bool& var);
void GetStoredParameterForDebug(char* buf); void GetStoredParameterForDebug(char* buf);
void LogOnStartProcessing();
void LogBeforeProcessingCommand(int32 command);
void LogAfterProcessingCommand(int32 command);
static char commandInfo[];
static uint32 storedIp;
#endif #endif
float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; } float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; }
@ -576,6 +583,12 @@ public:
public: public:
static void SwitchToMission(int32 mission); static void SwitchToMission(int32 mission);
#endif #endif
#ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
static void LogAfterScriptInitializing();
static void LogBeforeScriptProcessing();
static void LogAfterScriptProcessing();
#endif
}; };
#ifdef MISSION_REPLAY #ifdef MISSION_REPLAY

1441
src/control/ScriptDebug.cpp Normal file

File diff suppressed because it is too large Load diff