2017-08-30 18:31:27 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "ScriptingContext.h"
|
|
|
|
|
|
|
|
struct lua_State;
|
|
|
|
class Debugger;
|
|
|
|
|
|
|
|
class LuaScriptingContext : public ScriptingContext
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
lua_State* _lua = nullptr;
|
|
|
|
|
2017-10-05 19:44:37 -04:00
|
|
|
protected:
|
|
|
|
void InternalCallMemoryCallback(uint16_t addr, uint8_t &value, CallbackType type);
|
|
|
|
int InternalCallEventCallback(EventType type);
|
|
|
|
|
2017-08-30 18:31:27 -04:00
|
|
|
public:
|
|
|
|
LuaScriptingContext();
|
|
|
|
~LuaScriptingContext();
|
|
|
|
|
2017-10-07 15:16:14 -04:00
|
|
|
bool LoadScript(string scriptName, string scriptContent, Debugger* debugger);
|
2017-08-30 18:31:27 -04:00
|
|
|
};
|