16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 20:39:18 +02:00

basic lua support

This commit is contained in:
milek7
2017-08-30 13:55:07 +02:00
parent 1f2d7feccb
commit 5644206e42
13 changed files with 457 additions and 71 deletions

21
lua.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <lua.hpp>
class TEvent;
class TDynamicObject;
class lua
{
lua_State *state;
static int atpanic(lua_State *s);
static int openffi(lua_State *s);
public:
lua();
~lua();
void interpret(std::string file);
typedef void (*eventhandler_t)(TEvent*, TDynamicObject*);
};