mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Add climate information to Park API (#14636)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
# include "../platform/Platform2.h"
|
||||
# include "Duktape.hpp"
|
||||
# include "ScCheats.hpp"
|
||||
# include "ScClimate.hpp"
|
||||
# include "ScConsole.hpp"
|
||||
# include "ScContext.hpp"
|
||||
# include "ScDate.hpp"
|
||||
@@ -377,6 +378,8 @@ void ScriptEngine::Initialise()
|
||||
{
|
||||
auto ctx = static_cast<duk_context*>(_context);
|
||||
ScCheats::Register(ctx);
|
||||
ScClimate::Register(ctx);
|
||||
ScClimateState::Register(ctx);
|
||||
ScConfiguration::Register(ctx);
|
||||
ScConsole::Register(ctx);
|
||||
ScContext::Register(ctx);
|
||||
@@ -409,6 +412,7 @@ void ScriptEngine::Initialise()
|
||||
ScStaff::Register(ctx);
|
||||
|
||||
dukglue_register_global(ctx, std::make_shared<ScCheats>(), "cheats");
|
||||
dukglue_register_global(ctx, std::make_shared<ScClimate>(), "climate");
|
||||
dukglue_register_global(ctx, std::make_shared<ScConsole>(_console), "console");
|
||||
dukglue_register_global(ctx, std::make_shared<ScContext>(_execInfo, _hookEngine), "context");
|
||||
dukglue_register_global(ctx, std::make_shared<ScDate>(), "date");
|
||||
|
||||
Reference in New Issue
Block a user