Esempio n. 1
0
        public Room(PackedData.RoomCreateData data)
        {
            this.HostNickName = data.HostNickName;
            this.roomName     = data.roomName;
            this.password     = data.password;
            this.maxCapacity  = data.maxCapacity;

            this.teamCount      = data.teamCount;
            this.gameParameters = data.gameParameters;
            this.gameInfo       = data.gameInfo;

            members        = new ConcurrentDictionary <string, PackedData.RoomMember>();
            this.IsStarted = false;
        }
        public void EnteringRoom(PackedData.RoomCreateData data)
        {
            if (InvokeRequired == true)
            {
                this.Invoke(new SetRoomDataDelegate(EnteringRoom), data);
                return;
            }
            ClientInfo.getInstance().roomInfo = data;

            tab_MainTab.TabPages.Add(tab_GameRoom);

            txt_RoomChatting.Clear();
            txt_RoomChatBox.Clear();

            txt_RoomGameName.Text          = data.roomName;
            txt_RoomGameSettingViewer.Text =
                " 게임명: " + data.gameInfo.name +
                "\n 버전: " + data.gameInfo.gameVersion +
                "\n 제작자: " + data.gameInfo.producer;

            tab_MainTab.SelectTab(1);
        }