Beispiel #1
0
        public Page GetFirstConfigPage()
        {
            List <Page> list = new List <Page>();

            list.Add(new Page_SelectStoryteller());
            list.Add(new Page_CreateWorldParams());
            list.Add(new Page_SelectStartingSite());
            foreach (Page item in parts.SelectMany((ScenPart p) => p.GetConfigPages()))
            {
                list.Add(item);
            }
            Page page = PageUtility.StitchedPages(list);

            if (page != null)
            {
                Page page2 = page;
                while (page2.next != null)
                {
                    page2 = page2.next;
                }
                page2.nextAct = delegate
                {
                    PageUtility.InitGameStart();
                };
            }
            return(page);
        }
        public static void BeginScenarioConfiguration(Scenario scen, Page originPage)
        {
            Current.Game          = new Game();
            Current.Game.InitData = new GameInitData();
            Current.Game.Scenario = scen;
            Current.Game.Scenario.PreConfigure();
            Page firstConfigPage = Current.Game.Scenario.GetFirstConfigPage();

            if (firstConfigPage == null)
            {
                PageUtility.InitGameStart();
                return;
            }
            originPage.next      = firstConfigPage;
            firstConfigPage.prev = originPage;
        }
Beispiel #3
0
 private static void <GetFirstConfigPage> m__5()
 {
     PageUtility.InitGameStart();
 }