static int AutoGC(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PacketManage obj = (PacketManage)ToLua.CheckObject(L, 1, typeof(PacketManage)); long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.AutoGC(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnLoadPacket(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PacketManage obj = (PacketManage)ToLua.CheckObject(L, 1, typeof(PacketManage)); string arg0 = ToLua.CheckString(L, 2); obj.UnLoadPacket(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetPacket(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); PacketManage obj = (PacketManage)ToLua.CheckObject(L, 1, typeof(PacketManage)); string arg0 = ToLua.CheckString(L, 2); PacketRouting o = obj.GetPacket(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_WorkInResourcesEditor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PacketManage obj = (PacketManage)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.WorkInResourcesEditor = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WorkInResourcesEditor on a nil value" : e.Message)); } }
static int get_WorkInResourcesEditor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PacketManage obj = (PacketManage)o; bool ret = obj.WorkInResourcesEditor; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WorkInResourcesEditor on a nil value" : e.Message)); } }
static int LoadPacket(IntPtr L) { try { ToLua.CheckArgsCount(L, 6); PacketManage obj = (PacketManage)ToLua.CheckObject(L, 1, typeof(PacketManage)); PackType arg0 = (PackType)ToLua.CheckObject(L, 2, typeof(PackType)); string arg1 = ToLua.CheckString(L, 3); System.Action <string, PacketRouting> arg2 = null; LuaTypes funcType4 = LuaDLL.lua_type(L, 4); if (funcType4 != LuaTypes.LUA_TFUNCTION) { arg2 = (System.Action <string, PacketRouting>)ToLua.CheckObject(L, 4, typeof(System.Action <string, PacketRouting>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 4); arg2 = DelegateFactory.CreateDelegate(typeof(System.Action <string, PacketRouting>), func) as System.Action <string, PacketRouting>; } System.Action <string, float> arg3 = null; LuaTypes funcType5 = LuaDLL.lua_type(L, 5); if (funcType5 != LuaTypes.LUA_TFUNCTION) { arg3 = (System.Action <string, float>)ToLua.CheckObject(L, 5, typeof(System.Action <string, float>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 5); arg3 = DelegateFactory.CreateDelegate(typeof(System.Action <string, float>), func) as System.Action <string, float>; } bool arg4 = LuaDLL.luaL_checkboolean(L, 6); obj.LoadPacket(arg0, arg1, arg2, arg3, arg4); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }