Files
source/lua/Lua Interpreter.h
T
BeatAroundTheBuscherandGitHub ed00830202 Fixes Upper/Lower Casing for include paths (#487)
* Fixing upper/lower case for includes

types.h, zconf.h and zlib.h were renamed so that global includes like Types.h
are not used.
2025-08-16 22:01:12 -03:00

37 lines
889 B
C

#ifndef _LUA_INTERPRETER_H_
#define _LUA_INTERPRETER_H_
extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}
#include "types.h"
typedef struct {
STR8 name;
lua_CFunction get;
lua_CFunction set;
lua_CFunction call;
lua_CFunction staticcall;
} LuaAttrib;
void InitializeLua( );
int EvalLua (const wchar_t* buff) ; // The return value is whether to clear the input line, not whether the call succeeded.
void ShutdownLua( );
extern luaL_Reg WStringMethods[];
extern LuaAttrib Environment[];
extern LuaAttrib Soldier[];
extern LuaAttrib Sector[];
void CreateLuaClass( lua_State *L, STR8 ClassName, LuaAttrib *Attribs );
void NewLuaObject( lua_State *L, STR8 ClsName, void *Ptr );
void LuaStrategicSetup(lua_State *L);
void LuaTacticalSetup(lua_State *L);
void LuaEnvironmentSetup(lua_State *L);
#endif // _LUA_INTERPRETER_H_