forked from rosebudai/OpenRCT2-Web
Add park API
This commit is contained in:
1 parent
839dd6842b
commit
1acf1e870a
4 files changed
+116
-7
No files matched your search
@@ -15,6 +15,7 @@
|
||||
#include <stdexcept>
|
||||
|
||||
#include "ScConsole.hpp"
|
||||
#include "ScPark.hpp"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Scripting;
|
||||
@@ -42,9 +43,10 @@ void ScriptEngine::Initialise()
|
||||
|
||||
auto ctx = _context;
|
||||
ScConsole::Register(ctx);
|
||||
ScPark::Register(ctx);
|
||||
|
||||
auto scConsole = std::make_shared<ScConsole>(_console);
|
||||
dukglue_register_global(ctx, scConsole, "console");
|
||||
dukglue_register_global(ctx, std::make_shared<ScConsole>(_console), "console");
|
||||
dukglue_register_global(ctx, std::make_shared<ScPark>(), "park");
|
||||
}
|
||||
|
||||
void ScriptEngine::Update()
|
||||
|
||||
Reference in new issue
Block a user