Example #1
0
        public void Create()
        {
            // Root の作成
            Root root = new Root();
            {
                root.LoadGames();
                var pair = root.Pairs.Single(p => p.Loader.GameDirPath == _save.GamePath);

                int index;
                for (index = 0; index < root.Pairs.Count; index++)
                    if (root.Pairs[index].Loader.GameDirPath == _save.GamePath)
                        break;

                root.GameIndex = index;

                var loader = pair.Loader;
                {
                    loader.LoadGame();
                    loader.LoadScenarios();
                    loader.LoadMasterData();
                    loader.LoadUnits();
                }
                root.ScenarioIndex = _save.ScenarioNo - 1;
            }
            var creator = new NewGame(root);
            var manager = creator.Create();
            _save.OverrideData(manager);

            var uiManager = new ReignWindowManager(manager, _owner);
        }
Example #2
0
 /// <summary>
 /// 戦略ウィンドウの表示
 /// </summary>
 private void ShowReignWindow(Root root)
 {
     var creator = new Reign.NewGame(root);
     var manager = creator.Create();
     var uiManager = new ReignWindowManager(manager, this);
 }