/// <summary>
        /// Init the config for the quick game (2ep player options, and available zones)
        /// </summary>
        public void InitConfig()
        {
            GameConfig = new BasicOnlineGameConfig();
            var availableZones = ConfigHelper.GetAvailableZones();
            var zoneViewModel  = availableZones.ConvertAll(ZoneModelConverter.ConvertZone);

            ZoneViewModel.LoadImagesAsync(zoneViewModel);
            SingleMapConfig   = new SingleMapConfig(zoneViewModel);
            MultipleMapConfig = new MultiMapConfig(zoneViewModel, new List <ZoneViewModel>());
        }
Example #2
0
        public void InitConfig()
        {
            Config = ConfigHelper.GetCampaingDefaultSetting();
            var availableZones = ConfigHelper.GetAvailableZones();
            var selectedZones  = ConfigHelper.GetDefaultCampaingZone();

            var zoneViewModel = availableZones.ConvertAll(ZoneModelConverter.ConvertZone);

            ZoneViewModel.LoadImagesAsync(zoneViewModel);

            var selectedModel = selectedZones.ConvertAll(ZoneModelConverter.ConvertZone);

            ZoneViewModel.LoadImagesAsync(selectedModel);

            MapConfig = new MultiMapConfig(zoneViewModel, selectedModel);
        }