summaryrefslogtreecommitdiff
path: root/src/script/api/ai/ai_group.hpp.sq
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-03-08 18:13:33 +0000
committerGitHub <noreply@github.com>2019-03-08 18:13:33 +0000
commit41563a871b175f3469254d57dc019fda5210f8a9 (patch)
treee5117ce96dd17d50a4005496e8716a03ff77ef4e /src/script/api/ai/ai_group.hpp.sq
parent7ca1793ec4d75c99de41dc27431c3b9c8353d7a1 (diff)
downloadopenttd-41563a871b175f3469254d57dc019fda5210f8a9.tar.xz
Add: AI API for vehicle group colours (#7336)
Diffstat (limited to 'src/script/api/ai/ai_group.hpp.sq')
-rw-r--r--src/script/api/ai/ai_group.hpp.sq4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_group.hpp.sq b/src/script/api/ai/ai_group.hpp.sq
index 5fa50ae1b..29d86754d 100644
--- a/src/script/api/ai/ai_group.hpp.sq
+++ b/src/script/api/ai/ai_group.hpp.sq
@@ -45,6 +45,10 @@ void SQAIGroup_Register(Squirrel *engine)
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.DefSQStaticMethod(engine, &ScriptGroup::SetPrimaryColour, "SetPrimaryColour", 3, ".ii");
+ SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::SetSecondaryColour, "SetSecondaryColour", 3, ".ii");
+ SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::GetPrimaryColour, "GetPrimaryColour", 2, ".i");
+ SQAIGroup.DefSQStaticMethod(engine, &ScriptGroup::GetSecondaryColour, "GetSecondaryColour", 2, ".i");
SQAIGroup.PostRegister(engine);
}