rework hooks, proper arg conversion for luacall from ts, fix+rename bl.addServerCmd/addClientCmd, remove 'bool' from ts.type (only use 'boolean'), more dedefault typedefs, support typedefs on named objects, typedef inheritance, reorganize libts
This commit is contained in:
		| @@ -1,26 +0,0 @@ | ||||
| // Built-in functions | ||||
| // Eval'd after BLLua4 has loaded the Lua environment and API | ||||
|  | ||||
| // Public Lua library for TS | ||||
| function luacall(%func, %a,%b,%c,%d,%e,%f,%g,%h,%i,%j,%k,%l,%m,%n,%o,%p) { | ||||
| 	if($_bllua_active) | ||||
| 		return _bllua_luacall(%func, %a,%b,%c,%d,%e,%f,%g,%h,%i,%j,%k,%l,%m,%n,%o,%p); | ||||
| } | ||||
| function luaexec(%fn) { | ||||
| 	if($_bllua_active) | ||||
| 		return _bllua_luacall("_bllua_exec", %fn); | ||||
| } | ||||
| function luaeval(%code) { | ||||
| 	if($_bllua_active) | ||||
| 		return _bllua_luacall("_bllua_eval", %code); | ||||
| } | ||||
| function luaget(%name) { | ||||
| 	if($_bllua_active) | ||||
| 		return _bllua_luacall("_bllua_getvar", %name); | ||||
| } | ||||
| function luaset(%name, %val) { | ||||
| 	if($_bllua_active) | ||||
| 		_bllua_luacall("_bllua_setvar", %name, %val); | ||||
| } | ||||
|  | ||||
| echo("  Executed bllua-env.cs"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Redo
					Redo