From 46605e554ecdb9424e4b7529fefb65420747d2a0 Mon Sep 17 00:00:00 2001 From: zuu Date: Fri, 21 Sep 2012 20:49:43 +0000 Subject: (svn r24542) -Feature: Allow AI/GS script developers to break the execution of their scripts using ScriptController::Break --- src/script/api/game/game_controller.hpp.sq | 1 + 1 file changed, 1 insertion(+) (limited to 'src/script/api/game') 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"); -- cgit v1.2.3-70-g09d2