summaryrefslogtreecommitdiff
path: root/src/script/api/ai
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/ai
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/ai')
-rw-r--r--src/script/api/ai/ai_controller.hpp.sq1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_controller.hpp.sq b/src/script/api/ai/ai_controller.hpp.sq
index 57f8e7b60..2aefdd68e 100644
--- a/src/script/api/ai/ai_controller.hpp.sq
+++ b/src/script/api/ai/ai_controller.hpp.sq
@@ -20,6 +20,7 @@ void SQAIController_Register(Squirrel *engine)
SQAIController.DefSQStaticMethod(engine, &ScriptController::GetOpsTillSuspend, "GetOpsTillSuspend", 1, ".");
SQAIController.DefSQStaticMethod(engine, &ScriptController::SetCommandDelay, "SetCommandDelay", 2, ".i");
SQAIController.DefSQStaticMethod(engine, &ScriptController::Sleep, "Sleep", 2, ".i");
+ SQAIController.DefSQStaticMethod(engine, &ScriptController::Break, "Break", 2, ".s");
SQAIController.DefSQStaticMethod(engine, &ScriptController::GetSetting, "GetSetting", 2, ".s");
SQAIController.DefSQStaticMethod(engine, &ScriptController::GetVersion, "GetVersion", 1, ".");
SQAIController.DefSQStaticMethod(engine, &ScriptController::Print, "Print", 3, ".bs");