summaryrefslogtreecommitdiff
path: root/src/script/api/game
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2015-02-22 17:25:29 +0000
committeralberth <alberth@openttd.org>2015-02-22 17:25:29 +0000
commit0143f486f29d1e72082bcb3ac6c1d16c695b09af (patch)
tree7d8a4e4f144a78a36a597cfd8770562b2e9017b9 /src/script/api/game
parentc639fb0d8eb0371a95c39027a986636f1ca8f764 (diff)
downloadopenttd-0143f486f29d1e72082bcb3ac6c1d16c695b09af.tar.xz
(svn r27164) -Add: [NoGo] Game scripts can point to a location, station, industry, or town when publishing news.
Diffstat (limited to 'src/script/api/game')
-rw-r--r--src/script/api/game/game_news.hpp.sq7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/script/api/game/game_news.hpp.sq b/src/script/api/game/game_news.hpp.sq
index 70416f6b7..3d7022e10 100644
--- a/src/script/api/game/game_news.hpp.sq
+++ b/src/script/api/game/game_news.hpp.sq
@@ -28,8 +28,13 @@ void SQGSNews_Register(Squirrel *engine)
SQGSNews.DefSQConst(engine, ScriptNews::NT_ACCEPTANCE, "NT_ACCEPTANCE");
SQGSNews.DefSQConst(engine, ScriptNews::NT_SUBSIDIES, "NT_SUBSIDIES");
SQGSNews.DefSQConst(engine, ScriptNews::NT_GENERAL, "NT_GENERAL");
+ SQGSNews.DefSQConst(engine, ScriptNews::NR_NONE, "NR_NONE");
+ SQGSNews.DefSQConst(engine, ScriptNews::NR_TILE, "NR_TILE");
+ SQGSNews.DefSQConst(engine, ScriptNews::NR_STATION, "NR_STATION");
+ SQGSNews.DefSQConst(engine, ScriptNews::NR_INDUSTRY, "NR_INDUSTRY");
+ SQGSNews.DefSQConst(engine, ScriptNews::NR_TOWN, "NR_TOWN");
- SQGSNews.DefSQStaticMethod(engine, &ScriptNews::Create, "Create", 4, ".i.i");
+ SQGSNews.DefSQStaticMethod(engine, &ScriptNews::Create, "Create", 6, ".i.iii");
SQGSNews.PostRegister(engine);
}