static int GetChildCount(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaPerfect.ObjectItem obj = (LuaPerfect.ObjectItem)ToLua.CheckObject <LuaPerfect.ObjectItem>(L, 1); int o = obj.GetChildCount(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static int StaticGetChildCount(ObjectItem objectItem) { return(objectItem.GetChildCount()); }