Files
source/lua/Lua Interpreter.h
Wanne 91087ca8c0 ************************************************************
* Merged Source Code from Development Trunk: Revision 4063 *
************************************************************
- Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP
- This will be the Source for the Beta 2011 Test

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2011-01-18 09:11:09 +00: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_