forked from rosebudai/OpenRCT2-Web
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:
1 parent
f5fc12b7a8
commit
0522ae848b
14 files changed
+382
-90
No files matched your search
@@ -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