mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-01 11:15:13 +01:00
Add award plugin APIs (#24468)
* Add award plugin apis * Address review feedback (use erase_if, extract AwardAdd method) * Address review feedback (remove redundant comments, make AwardAdd static) * Address review feedback (bump plugin api version, add changelog entry)
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#include "bindings/object/ScObjectManager.h"
|
||||
#include "bindings/ride/ScRide.hpp"
|
||||
#include "bindings/ride/ScRideStation.hpp"
|
||||
#include "bindings/world/ScAward.hpp"
|
||||
#include "bindings/world/ScClimate.hpp"
|
||||
#include "bindings/world/ScDate.hpp"
|
||||
#include "bindings/world/ScMap.hpp"
|
||||
@@ -403,6 +404,7 @@ void ScriptEngine::Initialise()
|
||||
throw std::runtime_error("Script engine already initialised.");
|
||||
|
||||
auto ctx = static_cast<duk_context*>(_context);
|
||||
ScAward::Register(ctx);
|
||||
ScCheats::Register(ctx);
|
||||
ScClimate::Register(ctx);
|
||||
ScWeatherState::Register(ctx);
|
||||
|
||||
Reference in New Issue
Block a user