diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-01-04 17:31:52 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-01-04 19:07:13 +0100 |
commit | f40162214909116507811be4a1f5af9ec9d3ef97 (patch) | |
tree | 7e06ca0ceda70bda1c9c3cd2ee091e879e0fdb1d /src/script/api/game | |
parent | b524f1ae21487caf8ed460d8e20a51c3dd7e11a6 (diff) | |
download | openttd-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.sq | 2 |
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"); |