Пример #1
0
        // generates a json file that will be loaded in by galaxygencore to instantiate the star chart.
        static void Main(string[] args)
        {
            int numberOfSystems = 1;
            if (args.Length == 1)
            {
                int.TryParse(args[0], out numberOfSystems);
            }

            Console.Out.WriteLine("Creating galaxy with {0} Solarsystems...", numberOfSystems.ToString());

            GalaxyCreator gc = new GalaxyCreator();
            ScGalaxy gal = gc.GenerateGalaxy(numberOfSystems);

            GeneralJsonSerializer.SerializeAndSave(gal, Globals.GALAXY_CORE_DB);

            Console.Out.WriteLine("Json saved as {0}", Globals.GALAXY_CORE_DB);
        }
Пример #2
0
        // generates a json file that will be loaded in by galaxygencore to instantiate the star chart.
        static void Main(string[] args)
        {
            int numberOfSystems = 1;

            if (args.Length == 1)
            {
                int.TryParse(args[0], out numberOfSystems);
            }

            Console.Out.WriteLine("Creating galaxy with {0} Solarsystems...", numberOfSystems.ToString());

            GalaxyCreator gc  = new GalaxyCreator();
            ScGalaxy      gal = gc.GenerateGalaxy(numberOfSystems);

            GeneralJsonSerializer.SerializeAndSave(gal, Globals.GALAXY_CORE_DB);

            Console.Out.WriteLine("Json saved as {0}", Globals.GALAXY_CORE_DB);
        }