diff options
author | yexo <yexo@openttd.org> | 2009-05-07 21:33:38 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-05-07 21:33:38 +0000 |
commit | a00b22b1cd101eebc8dd1f8b54713dd3a3ca00eb (patch) | |
tree | cc8879a7b550a909c37360505840ca50d63d9adb /src/ai/api/ai_controller.hpp.sq | |
parent | 9b4a32deb41a33ea1a83ee1f14256e087460e1e5 (diff) | |
download | openttd-a00b22b1cd101eebc8dd1f8b54713dd3a3ca00eb.tar.xz |
(svn r16253) -Add [NoAI]: AIController::GetVersion, this returns the newgrf-version of OpenTTD
Diffstat (limited to 'src/ai/api/ai_controller.hpp.sq')
-rw-r--r-- | src/ai/api/ai_controller.hpp.sq | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_controller.hpp.sq b/src/ai/api/ai_controller.hpp.sq index 68282db32..02212061b 100644 --- a/src/ai/api/ai_controller.hpp.sq +++ b/src/ai/api/ai_controller.hpp.sq @@ -9,6 +9,7 @@ void SQAIController_Register(Squirrel *engine) { SQAIController.DefSQStaticMethod(engine, &AIController::SetCommandDelay, "SetCommandDelay", 2, ".i"); SQAIController.DefSQStaticMethod(engine, &AIController::Sleep, "Sleep", 2, ".i"); SQAIController.DefSQStaticMethod(engine, &AIController::GetSetting, "GetSetting", 2, ".s"); + SQAIController.DefSQStaticMethod(engine, &AIController::GetVersion, "GetVersion", 1, "."); SQAIController.DefSQStaticMethod(engine, &AIController::Print, "Print", 3, ".bs"); SQAIController.PostRegister(engine); } |