예제 #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);
 }
        private void EnterSubstate(OfflineSubstate nextSubstate)
        {
            switch (nextSubstate)
            {
            case OfflineSubstate.OfflineMenu:
                var offlineMenu = new OfflineMenu();
                Program.MainWindow.SwitchScreen(offlineMenu);
                break;

            case OfflineSubstate.QuickConfig:
                var quickGameConfig = new QuickGameConfig();
                quickGameConfig.InitConfig();
                quickGameConfig.GotoConfigWindows();
                break;

            case OfflineSubstate.CampaignConfig:
                var campaignConfig = new CampaingGameConfig();
                campaignConfig.InitConfig();
                campaignConfig.GotoConfigWindows();
                break;
            }
            _currentSubState = nextSubstate;
        }