summaryrefslogtreecommitdiff
path: root/src/script/api/ai
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-02-13 22:48:46 +0000
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-03-03 09:15:39 +0100
commit5d3ccae6c5bd3f328ad0d8e68ae7c69451b9ca48 (patch)
treed2b9f27857cd3fe841607b9ad444e04d89c205e0 /src/script/api/ai
parente0c2ad1b6591859a1a30216e396cdab6e6bb028f (diff)
downloadopenttd-5d3ccae6c5bd3f328ad0d8e68ae7c69451b9ca48.tar.xz
Add: AI function to get current usage of a group.
Diffstat (limited to 'src/script/api/ai')
-rw-r--r--src/script/api/ai/ai_group.hpp.sq1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_group.hpp.sq b/src/script/api/ai/ai_group.hpp.sq
index d721ddfbf..cae6cb3ac 100644
--- a/src/script/api/ai/ai_group.hpp.sq
+++ b/src/script/api/ai/ai_group.hpp.sq
@@ -44,6 +44,7 @@ void SQAIGroup_Register(Squirrel *engine)
SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::StopAutoReplace, "StopAutoReplace", 3, ".ii");
SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::GetProfitThisYear, "GetProfitThisYear", 2, ".i");
SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::GetProfitLastYear, "GetProfitLastYear", 2, ".i");
+ SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::GetCurrentUsage, "GetCurrentUsage", 2, ".i");
SQAIGroup.PostRegister(engine);
}