diff options
author | alberth <alberth@openttd.org> | 2015-02-22 17:25:29 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2015-02-22 17:25:29 +0000 |
commit | 0143f486f29d1e72082bcb3ac6c1d16c695b09af (patch) | |
tree | 7d8a4e4f144a78a36a597cfd8770562b2e9017b9 /src/script/api/game | |
parent | c639fb0d8eb0371a95c39027a986636f1ca8f764 (diff) | |
download | openttd-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.sq | 7 |
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); } |