mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Control over rain and ambient light, as well as light fixtures Ability to change number of static enemies in a sector Ability to create enemy groups and set their waypoints Ability to set soldier APs, change stance, and change level git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1529 3b4a5df2-a311-0410-b5c6-a8a6f20db521
32 lines
796 B
C
32 lines
796 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;
|
|
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);
|