mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
22 lines
324 B
C++
22 lines
324 B
C++
#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*, const TDynamicObject*);
|
|
};
|