mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 13:29:18 +02:00
Reorganize source files into logical subdirectories
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
This commit is contained in:
22
scripting/lua.h
Normal file
22
scripting/lua.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include <lua.hpp>
|
||||
|
||||
class basic_event;
|
||||
class TDynamicObject;
|
||||
|
||||
class lua
|
||||
{
|
||||
lua_State *state;
|
||||
|
||||
static int atpanic(lua_State *s);
|
||||
static int openffi(lua_State *s);
|
||||
|
||||
public:
|
||||
lua();
|
||||
~lua();
|
||||
|
||||
std::string get_error();
|
||||
void interpret(std::string file);
|
||||
|
||||
typedef void (*eventhandler_t)(basic_event*, const TDynamicObject*);
|
||||
};
|
||||
Reference in New Issue
Block a user