コード例 #1
0
        public void CreateDefaultPages()
        {
            if (pages.ShouldCreateDefaultPages())
            {
                Page Progress = new Page
                {
                    Name    = "Progress",
                    Content = "Some placeholder content for progress page.",
                };

                Page Downloads = new Page
                {
                    Name    = "Downloads",
                    Content = "DOWNLOAD LINKUS EVERYWHEREEEEEEE"
                };

                Page About = new Page
                {
                    Name    = "About",
                    Content = "Some very cool information about the game"
                };

                Page Contacts = new Page
                {
                    Name    = "Contacts",
                    Content = "Some information to contact the developer"
                };

                List <Page> pageList = new List <Page>();

                pageList.Add(Progress);
                pageList.Add(Progress);
                pageList.Add(Downloads);
                pageList.Add(About);
                pageList.Add(Contacts);

                pages.AddDefaultPages(pageList);
            }
        }