diff options
-rw-r--r-- | src/script/api/game/game_news.hpp.sq | 10 | ||||
-rw-r--r-- | src/script/api/game_changelog.hpp | 1 | ||||
-rw-r--r-- | src/script/api/script_news.hpp | 5 |
3 files changed, 13 insertions, 3 deletions
diff --git a/src/script/api/game/game_news.hpp.sq b/src/script/api/game/game_news.hpp.sq index 16f187204..70416f6b7 100644 --- a/src/script/api/game/game_news.hpp.sq +++ b/src/script/api/game/game_news.hpp.sq @@ -21,9 +21,13 @@ void SQGSNews_Register(Squirrel *engine) SQGSNews.PreRegister(engine); SQGSNews.AddConstructor<void (ScriptNews::*)(), 1>(engine, "x"); - SQGSNews.DefSQConst(engine, ScriptNews::NT_ECONOMY, "NT_ECONOMY"); - SQGSNews.DefSQConst(engine, ScriptNews::NT_SUBSIDIES, "NT_SUBSIDIES"); - SQGSNews.DefSQConst(engine, ScriptNews::NT_GENERAL, "NT_GENERAL"); + SQGSNews.DefSQConst(engine, ScriptNews::NT_ACCIDENT, "NT_ACCIDENT"); + SQGSNews.DefSQConst(engine, ScriptNews::NT_COMPANY_INFO, "NT_COMPANY_INFO"); + SQGSNews.DefSQConst(engine, ScriptNews::NT_ECONOMY, "NT_ECONOMY"); + SQGSNews.DefSQConst(engine, ScriptNews::NT_ADVICE, "NT_ADVICE"); + 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.DefSQStaticMethod(engine, &ScriptNews::Create, "Create", 4, ".i.i"); diff --git a/src/script/api/game_changelog.hpp b/src/script/api/game_changelog.hpp index 19279c8e5..ab6678c49 100644 --- a/src/script/api/game_changelog.hpp +++ b/src/script/api/game_changelog.hpp @@ -20,6 +20,7 @@ * 1.3.0 is not yet released. The following changes are not set in stone yet. * * API additions: + * \li GSNews::NT_ACCIDENT, GSNews::NT_COMPANY_INFO, GSNews::NT_ADVICE, GSNews::NT_ACCEPTANCE * \li GSStation::IsAirportClosed * \li GSStation::OpenCloseAirport * diff --git a/src/script/api/script_news.hpp b/src/script/api/script_news.hpp index 0867b91fe..8defa3a85 100644 --- a/src/script/api/script_news.hpp +++ b/src/script/api/script_news.hpp @@ -25,7 +25,12 @@ public: * Enumeration for the news types that a script can create news for. */ enum NewsType { + /* Arbitrary selection of NewsTypes which might make sense for scripts */ + NT_ACCIDENT = ::NT_ACCIDENT, ///< Category accidents. + NT_COMPANY_INFO = ::NT_COMPANY_INFO, ///< Category company info. NT_ECONOMY = ::NT_ECONOMY, ///< Category economy. + NT_ADVICE = ::NT_ADVICE, ///< Category vehicle advice. + NT_ACCEPTANCE = ::NT_ACCEPTANCE, ///< Category acceptance changes. NT_SUBSIDIES = ::NT_SUBSIDIES, ///< Category subsidies. NT_GENERAL = ::NT_GENERAL, ///< Category general. }; |