diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-02-13 22:18:33 +0000 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-03 09:15:39 +0100 |
commit | 3c047b124e28db45621de06d5556c96598352fc7 (patch) | |
tree | d347611d01fe873c42ac1a9da9220d3ef7deb4ce /src/script/api/ai | |
parent | b62452903a3af9e51dc308fd674a788214942382 (diff) | |
download | openttd-3c047b124e28db45621de06d5556c96598352fc7.tar.xz |
Add: AI functions to get current and last year profit of a group.
Diffstat (limited to 'src/script/api/ai')
-rw-r--r-- | src/script/api/ai/ai_group.hpp.sq | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_group.hpp.sq b/src/script/api/ai/ai_group.hpp.sq index a5f0e25a0..d721ddfbf 100644 --- a/src/script/api/ai/ai_group.hpp.sq +++ b/src/script/api/ai/ai_group.hpp.sq @@ -42,6 +42,8 @@ void SQAIGroup_Register(Squirrel *engine) SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::SetAutoReplace, "SetAutoReplace", 4, ".iii"); SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::GetEngineReplacement, "GetEngineReplacement", 3, ".ii"); 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.PostRegister(engine); } |