2019-09-27 18:36:36 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "wren/include/wren.hpp"
|
|
|
|
|
|
|
|
class Engine;
|
|
|
|
|
|
|
|
struct BundleData {
|
|
|
|
Engine *engine = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
class Logic {
|
|
|
|
public:
|
|
|
|
Logic(Engine *engine);
|
|
|
|
~Logic();
|
|
|
|
|
|
|
|
static WrenForeignMethodFn
|
|
|
|
bindForeignMethod(WrenVM *vm, const char *module, const char *className, bool isStatic, const char *signature);
|
2019-10-01 16:44:50 +02:00
|
|
|
void interpret(const char *name);
|
2019-09-27 18:36:36 +02:00
|
|
|
|
|
|
|
void add_item();
|
|
|
|
|
|
|
|
private:
|
|
|
|
BundleData _bundleData;
|
|
|
|
WrenVM *_wrenVm = nullptr;
|
|
|
|
};
|