1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Add research plugin API

This commit is contained in:
Ted John
2023-04-14 21:57:38 +01:00
parent 2fd3eb47e7
commit f35e595d0e
7 changed files with 415 additions and 2 deletions

View File

@@ -47,6 +47,7 @@
# include "bindings/world/ScMap.hpp"
# include "bindings/world/ScPark.hpp"
# include "bindings/world/ScParkMessage.hpp"
# include "bindings/world/ScResearch.hpp"
# include "bindings/world/ScScenario.hpp"
# include "bindings/world/ScTile.hpp"
# include "bindings/world/ScTileElement.hpp"
@@ -409,6 +410,7 @@ void ScriptEngine::Initialise()
ScPlayer::Register(ctx);
ScPlayerGroup::Register(ctx);
ScProfiler::Register(ctx);
ScResearch::Register(ctx);
ScRide::Register(ctx);
ScRideStation::Register(ctx);
ScRideObject::Register(ctx);
@@ -439,7 +441,7 @@ void ScriptEngine::Initialise()
dukglue_register_global(ctx, std::make_shared<ScDate>(), "date");
dukglue_register_global(ctx, std::make_shared<ScMap>(ctx), "map");
dukglue_register_global(ctx, std::make_shared<ScNetwork>(ctx), "network");
dukglue_register_global(ctx, std::make_shared<ScPark>(), "park");
dukglue_register_global(ctx, std::make_shared<ScPark>(ctx), "park");
dukglue_register_global(ctx, std::make_shared<ScProfiler>(ctx), "profiler");
dukglue_register_global(ctx, std::make_shared<ScScenario>(), "scenario");