Ejemplo n.º 1
0
        private async Task CreatRoom(string name, string ciph, byte tp)
        {
            try
            {
                var       roomPrx  = Session.UncheckedCast(IRoomPrxHelper.uncheckedCast);
                RoomInfoP roomInfo = await roomPrx.CreateRoomAsync(name, ciph, tp);

                DataManager.Instance.RoomDataManager.SetOwner(true);
                DataManager.Instance.RoomDataManager.SetCurRoomInfo(roomInfo);
            }
            catch (Ice.Exception ex)
            {
                throw;
            }
        }
Ejemplo n.º 2
0
 public void SetEnterRoomInfo(RoomInfoP roomInfo)
 {
     CurRoomInfo = roomInfo;
 }
Ejemplo n.º 3
0
 public void SetCurRoomInfo(RoomInfoP roomInfo)
 {
     CurRoomInfo = roomInfo;
     Messenger <RoomInfoP> .Broadcast(MessengerEventDef.CUR_ROOM, CurRoomInfo);
 }