Example #1
0
 private void UpdateMapPool(string mapName, string gameModeName, bool toggleIsOn)
 {
     if (toggleIsOn)
     {
         _lobbyData.AddMap(gameModeName, mapName);
     }
     else
     {
         _lobbyData.RemoveMap(gameModeName, mapName);
     }
 }
Example #2
0
        // PRIVATE

        private void PopulateMapList()
        {
            foreach (var map in _mapListData.MapList)
            {
                foreach (var supportedGamemode in map.SupportedGamemodes)
                {
                    if (supportedGamemode.Value == _lobbyData.ChosenGamemode)
                    {
                        _lobbyData.AddMap(_lobbyData.ChosenGamemode, map.MapName);
                        break;
                    }
                }
            }
        }