static int _Register(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); PomeloNetworkManager obj = (PomeloNetworkManager)ToLua.CheckObject <PomeloNetworkManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); obj.Register(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }