1
0
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:
Jan Strauss
2025-07-13 12:04:26 +02:00
committed by GitHub
parent f5fc12b7a8
commit 0522ae848b
14 changed files with 382 additions and 90 deletions

View File

@@ -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);