mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Added LUA support:
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
This commit is contained in:
@@ -11,9 +11,21 @@ typedef struct {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user