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; } }
public void SetEnterRoomInfo(RoomInfoP roomInfo) { CurRoomInfo = roomInfo; }
public void SetCurRoomInfo(RoomInfoP roomInfo) { CurRoomInfo = roomInfo; Messenger <RoomInfoP> .Broadcast(MessengerEventDef.CUR_ROOM, CurRoomInfo); }