void CreateRandomMatchmakingServer() { string serverName = ChatHandler.Instance.ChatUsername + "'s Server"; string mapQueueString = "City#0~Greenlands#1~City#2~Greenlands#0~City#1~Greenlands#2"; ServerOptions.CreateRoom(serverName, mapQueueString); }
void DrawCreateRoomButton() { if (GUI.Button(new Rect(40, Screen.height - 80, Screen.width - 80, 40), "Create Room", Styles.DarkButton)) { if (m_ServerName == "") { RoomMenu.ShowPopupMessage("Please enter a name"); } else if (m_MapQueue.Count == 0) { RoomMenu.ShowPopupMessage("Please add a map to the map queue"); } else { ServerOptions.CreateRoom(m_ServerName, MapQueue.ListToString(m_MapQueue)); } } }
void CreateSqlMatchmakingServer() { string serverName = ChatHandler.Instance.ChatUsername + "'s Server"; ServerOptions.CreateRoom(serverName, MapQueue.ListToString(m_MatchmakingMapQueue), m_PlayerSkill); }
/// <summary> /// If no suitable room was found through room properties matchmaking, we just create a new one /// </summary> void CreateRoomPropertiesMatchmakingServer() { string serverName = ChatHandler.Instance.ChatUsername + "'s Server"; ServerOptions.CreateRoom(serverName, MapQueue.ListToString(m_MatchmakingMapQueue)); }