summaryrefslogtreecommitdiff
path: root/src/script/api/game
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2012-09-21 20:49:43 +0000
committerzuu <zuu@openttd.org>2012-09-21 20:49:43 +0000
commit46605e554ecdb9424e4b7529fefb65420747d2a0 (patch)
tree47ae4fa485f5ef7a4bc96daf49ba6715e08267a8 /src/script/api/game
parentb490d5ceab37afead2e22fbbef71b9ed71d9adc7 (diff)
downloadopenttd-46605e554ecdb9424e4b7529fefb65420747d2a0.tar.xz
(svn r24542) -Feature: Allow AI/GS script developers to break the execution of their scripts using ScriptController::Break
Diffstat (limited to 'src/script/api/game')
-rw-r--r--src/script/api/game/game_controller.hpp.sq1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/game/game_controller.hpp.sq b/src/script/api/game/game_controller.hpp.sq
index 461ba52f4..7cae77de3 100644
--- a/src/script/api/game/game_controller.hpp.sq
+++ b/src/script/api/game/game_controller.hpp.sq
@@ -20,6 +20,7 @@ void SQGSController_Register(Squirrel *engine)
SQGSController.DefSQStaticMethod(engine, &ScriptController::GetOpsTillSuspend, "GetOpsTillSuspend", 1, ".");
SQGSController.DefSQStaticMethod(engine, &ScriptController::SetCommandDelay, "SetCommandDelay", 2, ".i");
SQGSController.DefSQStaticMethod(engine, &ScriptController::Sleep, "Sleep", 2, ".i");
+ SQGSController.DefSQStaticMethod(engine, &ScriptController::Break, "Break", 2, ".s");
SQGSController.DefSQStaticMethod(engine, &ScriptController::GetSetting, "GetSetting", 2, ".s");
SQGSController.DefSQStaticMethod(engine, &ScriptController::GetVersion, "GetVersion", 1, ".");
SQGSController.DefSQStaticMethod(engine, &ScriptController::Print, "Print", 3, ".bs");