Beispiel #1
0
 public void SetContext(QuickGameConfig config)
 {
     _config = config;
     BasicGameConfig.SetGameConfig(config.BasicOfflineGameConfig);
     //Change name function and clas to zone instead of map
     ZoneSelector.SetDataContext(config.SingleMapConfig);
 }
        public void SetContext(CampaingGameConfig config)
        {
            _config = config;
            BasicGameConfig.SetGameConfig(config.Config);

            var mapSelector = new MultipleMapSelector();

            mapSelector.SetDataContext(config.MapConfig);
            ZoneSelectionPanel.Content = mapSelector;
        }
        public void SetContext(OnlineGameConfig config)
        {
            _config = config;
            BasicGameConfig.SetGameConfig(config.GameConfig);

            _singleZoneSelector.SetDataContext(config.SingleMapConfig);
            _multipleMapSelector.SetDataContext(config.MultipleMapConfig);
            _singleZoneSelector.ChildEvent  += HandleChildEvent;
            _multipleMapSelector.ChildEvent += HandleChildEvent;

            SwitchZoneSelector(_config.GameConfig.ZoneConfig);
        }