Beispiel #1
0
        public static void Initialize()
        {
            if (World.Items.Any(kv => kv.Value is BaseDoor))
            {
                return;
            }

            ConsoleKey key;

            if (AutoSetupNewWorld)
            {
                Console.WriteLine("This appears to be a new world, automatically setting it up.");
                key = ConsoleKey.Y;
            }
            else
            {
                Console.WriteLine("This appears to be a new world, do you want generate signs/doors/decoration? (y/n)");
                key = Console.ReadKey(true).Key;
            }

            if (key == ConsoleKey.Y)
            {
                Console.Write("Generating... ");
                DoorGenerator.Generate();
                Decorate.Generate();
                SignGenerator.Generate();
                GenerateSpawners.Generate("felucca.json");
                PublicMoongate.MoonGen(PMList.Felucca);
                new GenTeleporter.TeleportersCreator().CreateTeleporters();

                Console.WriteLine("New world generation complete.");
                Timer.DelayCall(TimeSpan.FromMilliseconds(100), World.Save);
            }
        }
 private void GenerateDoors_Callback()
 {
     DoorGenerator.Generate();
     MessageBox.Show(Core.MainForm, "Doors generated successfully", "Success");
 }