summaryrefslogtreecommitdiff
path: root/src/script/api/game
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2020-01-04 17:31:52 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-01-04 19:07:13 +0100
commitf40162214909116507811be4a1f5af9ec9d3ef97 (patch)
tree7e06ca0ceda70bda1c9c3cd2ee091e879e0fdb1d /src/script/api/game
parentb524f1ae21487caf8ed460d8e20a51c3dd7e11a6 (diff)
downloadopenttd-f40162214909116507811be4a1f5af9ec9d3ef97.tar.xz
Feature: Script API to change town rating of companies
Diffstat (limited to 'src/script/api/game')
-rw-r--r--src/script/api/game/game_town.hpp.sq2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/game/game_town.hpp.sq b/src/script/api/game/game_town.hpp.sq
index b97cb59d2..5cf394ca1 100644
--- a/src/script/api/game/game_town.hpp.sq
+++ b/src/script/api/game/game_town.hpp.sq
@@ -79,6 +79,8 @@ void SQGSTown_Register(Squirrel *engine)
SQGSTown.DefSQStaticMethod(engine, &ScriptTown::ExpandTown, "ExpandTown", 3, ".ii");
SQGSTown.DefSQStaticMethod(engine, &ScriptTown::FoundTown, "FoundTown", 6, ".iibi.");
SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetRating, "GetRating", 3, ".ii");
+ SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetDetailedRating, "GetDetailedRating", 3, ".ii");
+ SQGSTown.DefSQStaticMethod(engine, &ScriptTown::ChangeRating, "ChangeRating", 4, ".iii");
SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetAllowedNoise, "GetAllowedNoise", 2, ".i");
SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetRoadLayout, "GetRoadLayout", 2, ".i");