/// <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>());
        }
示例#2
0
 /// <summary>
 /// Will set the datacontext (necessary for binding)
 /// </summary>
 /// <param name="offlineGameConfig"></param>
 public void SetGameConfig(BasicOnlineGameConfig offlineGameConfig)
 {
     _config     = offlineGameConfig;
     DataContext = offlineGameConfig;
 }