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:
@@ -10,7 +10,7 @@ package _bllua_smartEval {
|
||||
if($_bllua_active) {
|
||||
%text = getSubStr(%text, 1, strLen(%text));
|
||||
echo("Lua ==> " @ %text);
|
||||
luacall("_bllua_smarteval", %text);
|
||||
_bllua_luacall("_bllua_smarteval", %text);
|
||||
} else {
|
||||
echo("Lua: not loaded");
|
||||
}
|
||||
@@ -36,7 +36,8 @@ package _bllua_objectDeletionHook {
|
||||
// note: no parent function exists by default,
|
||||
// and this is loaded before any addons
|
||||
//parent::onRemove(%obj);
|
||||
if($_bllua_active) luacall("_bllua_objectDeleted", %obj);
|
||||
// assuming obj is an ID and never a name
|
||||
if($_bllua_active) _bllua_luacall("_bllua_objectDeleted", %obj);
|
||||
}
|
||||
};
|
||||
activatePackage(_bllua_objectDeletionHook);
|
||||
|
||||
Reference in New Issue
Block a user