static int _g_get_data(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ListClubRoom gen_to_be_invoked = (ListClubRoom)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.data); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_data(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ListClubRoom gen_to_be_invoked = (ListClubRoom)translator.FastGetCSObj(L, 1); gen_to_be_invoked.data = (System.Collections.Generic.List <ClubRoomInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <ClubRoomInfo>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_errmsg(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ListClubRoom gen_to_be_invoked = (ListClubRoom)translator.FastGetCSObj(L, 1); gen_to_be_invoked.errmsg = LuaAPI.lua_tostring(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
void refresh() { NetMgr nm = NetMgr.GetInstance(); nm.request_apis("list_club_rooms", "club_id", mClubID, data => { ListClubRoom ret = JsonUtility.FromJson <ListClubRoom> (data.ToString()); if (ret.errcode != 0) { return; } mRooms = ret.data; showRooms(); }); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { ListClubRoom gen_ret = new ListClubRoom(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to ListClubRoom constructor!")); }
public static void list_club_rooms(int club_id, Action <bool> cb) { NetMgr nm = NetMgr.GetInstance(); nm.request_apis("list_club_rooms", "club_id", club_id, data => { ListClubRoom ret = JsonUtility.FromJson <ListClubRoom> (data.ToString()); if (ret.errcode != 0) { if (cb != null) { cb(false); } return; } slist_club_rooms = ret; if (cb != null) { cb(true); } }); }