Beispiel #1
0
        static void Main(string [] args)
        {
            stopwatch = Stopwatch.StartNew();

            string path = Constants.output_path + "output-" + MapToggles.bit_mask_string + ".svg";

            Console.WriteLine("Reading files...");
            Map map = new Map();

            LogTime();

            Console.WriteLine("Chunking...");
            Chunker.GenerateChunks(map);
            LogTime();

            Console.WriteLine("Grouping Cities...");
            CityGrouper.GroupCities(map);
            LogTime();

            Console.WriteLine("Naming Towers...");
            Namer.NameTowers(map);
            LogTime();

            Console.WriteLine("Nudging towers...");
            Nudger.NudgeTowers(map);
            LogTime();

            Console.WriteLine("Placing Labels...");
            LabelPlacer.PlaceLabels(map);
            LogTime();

            Console.WriteLine("Generating SVG...");
            string contents = SVGWriter.GenerateSVG(map, false);

            LogTime();

            Console.WriteLine("Writing File...");
            File.WriteAllText(path, contents);
            LogTime();

            Console.WriteLine("Done");

            Console.WriteLine(" >> Saved to: " + path);

            Console.WriteLine(total_time + "s total used.");

            Console.WriteLine("\nPress any key to exit.");
            Console.ReadKey();
        }