예제 #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            var xml        = File.ReadAllText("tiles.xml");
            var worldInfo  = WorldInfo.FromWorldInfoData(xml);
            var mainWindow = new MainWindow(worldInfo);

            mainWindow.Show();
        }
예제 #2
0
        static async Task Main(string[] args)
        {
            DumpSize <short>();
            DumpSize <int>();
            DumpSize <Color24>();
            DumpSize <double>();

            var stopwatch = Stopwatch.StartNew();
            var xml       = await File.ReadAllTextAsync("../tiles.xml");

            Console.WriteLine("Read XML in " + stopwatch.Elapsed);
            stopwatch.Restart();
            var worldInfo = WorldInfo.FromWorldInfoData(xml);

            Console.WriteLine("Parsed tile data in " + stopwatch.Elapsed);
        }