26 lines
444 B
C++
26 lines
444 B
C++
#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);
|
|
void interpret();
|
|
|
|
void add_item();
|
|
|
|
private:
|
|
BundleData _bundleData;
|
|
WrenVM *_wrenVm = nullptr;
|
|
};
|