private void activateSinglePlayerLobby() { gameSelectionLobby.SetActive(false); singlePlayerLobby.SetActive(true); PreGameBaseLobby lobby = singlePlayerLobby.GetComponent <PreGameBaseLobby>(); AccountInfoPacket currentUser = ClientUI.ClientUIOverlord.getCurrentAcountInfo(); PlayerInfo playerInfo = new PlayerInfo() { iconNumber = int.Parse(currentUser.Properties[AlbotDictKeys.icon]), username = currentUser.Username }; PreGameSlotInfo[] players = new PreGameSlotInfo[] { new PreGameSlotInfo() { playerInfo = playerInfo, slotID = 0 }, new PreGameSlotInfo() { playerInfo = playerInfo, slotID = 1, isReady = true } }; PreGameSpecs specs = new PreGameSpecs() { type = gameMap.type, hostName = ClientUIOverlord.getCurrentAcountInfo().Username }; PreGameRoomMsg roomInfo = new PreGameRoomMsg() { players = players, specs = specs }; AnneHacks.startSinglePlayerLobby(lobby, gameMap); lobby.initPreGameLobby(gameMap.picture, roomInfo); }
public void setCurrentPreLobby(PreGameBaseLobby preLobby) { this.preLobby = preLobby; }