Beispiel #1
0
 public void Init()
 {
     EventMgr.Instance.AddListener(this, EventName.UPATE_ROOM_USER);
     EventMgr.Instance.AddListener(this, EventName.ALL_ROOM_DATA);
     //获取
     searchGrounpDao = new SearchGrounpDao();
     joinRoomDao     = new JoinRoomDao();
     editGrounpDao   = new EditGrounpDao();
     joinRoomDao.GetRoomUserData();
     joinRoomDao.GetAllRoom();
 }
Beispiel #2
0
 private void CreateGroupRoomDic(List <Room> roomList)
 {
     this.roomList = roomList;
     roomGrounp.Clear();
     roomList.ForEach((item) => {
         Grounp p = SearchGrounpDao.GetGrounpById(item.grounpId.ToString());
         roomGrounp.Add(item.id, p);
     });
     // Console.WriteLine(Utils.CollectionsConvert.ToJSON(roomGrounp));
     // Logger.Debug(Utils.CollectionsConvert.ToJSON(roomGrounp));
 }