static int EnterGame(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ChannelPlatform.RoleInfo arg0 = (ChannelPlatform.RoleInfo)ToLua.CheckObject <ChannelPlatform.RoleInfo>(L, 1); ChannelMgr.EnterGame(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }