(svn r24542) -Feature: Allow AI/GS script developers to break the execution of their scripts using ScriptController::Break

This commit is contained in:
zuu
2012-09-21 20:49:43 +00:00
parent b490d5ceab
commit 46605e554e
4 changed files with 38 additions and 0 deletions

View File

@@ -104,6 +104,18 @@ public:
*/
static void Sleep(int ticks);
/**
* Break execution of the script when script developer tools are active. For
* other users, nothing will happen when you call this function. To resume
* the script, you have to click on the continue button in the AI debug
* window. It is not recommended to leave calls to this function in scripts
* that you publish or upload to bananas.
* @param message to print in the AI debug window when the break occurs.
* @note gui.ai_developer_tools setting must be enabled or the break is
* ignored.
*/
static bool Break(const char* message);
/**
* When Squirrel triggers a print, this function is called.
* Squirrel calls this when 'print' is used, or when the script made an error.