mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Re-integrated LUA and console. Still many things to finish though. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1048 3b4a5df2-a311-0410-b5c6-a8a6f20db521
20 lines
386 B
C
20 lines
386 B
C
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;
|
|
} 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( );
|
|
|