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:
21
lua.h
Normal file
21
lua.h
Normal 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*);
|
||||
};
|
||||
Reference in New Issue
Block a user