summaryrefslogtreecommitdiff
path: root/src/script/api/game
diff options
context:
space:
mode:
authorPavel Stupnikov <dp@dpointer.org>2020-01-15 20:46:26 +0300
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-01-15 18:46:26 +0100
commitd7a928a08b0d614bc06f4a6e8a275582a100599f (patch)
treeefd1163e334ea02f8ba5811df5ff4ca175c37374 /src/script/api/game
parent4366f8e46a601aa1edaa5f5c3a7e41d453637b4c (diff)
downloadopenttd-d7a928a08b0d614bc06f4a6e8a275582a100599f.tar.xz
Feature: GS method to control engine availability for a specific company (#7791)
* Feature: GS method to allow company to use an engine before its introduction date * Feature: GS method to retire an engine early for a specific company
Diffstat (limited to 'src/script/api/game')
-rw-r--r--src/script/api/game/game_engine.hpp.sq2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/game/game_engine.hpp.sq b/src/script/api/game/game_engine.hpp.sq
index fdef599c3..2efa1414a 100644
--- a/src/script/api/game/game_engine.hpp.sq
+++ b/src/script/api/game/game_engine.hpp.sq
@@ -46,6 +46,8 @@ void SQGSEngine_Register(Squirrel *engine)
SQGSEngine.DefSQStaticMethod(engine, &ScriptEngine::IsArticulated, "IsArticulated", 2, ".i");
SQGSEngine.DefSQStaticMethod(engine, &ScriptEngine::GetPlaneType, "GetPlaneType", 2, ".i");
SQGSEngine.DefSQStaticMethod(engine, &ScriptEngine::GetMaximumOrderDistance, "GetMaximumOrderDistance", 2, ".i");
+ SQGSEngine.DefSQStaticMethod(engine, &ScriptEngine::EnableForCompany, "EnableForCompany", 3, ".ii");
+ SQGSEngine.DefSQStaticMethod(engine, &ScriptEngine::DisableForCompany, "DisableForCompany", 3, ".ii");
SQGSEngine.PostRegister(engine);
}