Exemple #1
0
 private static void LoadGameData()
 {
     Console.ForegroundColor = ConsoleColor.Yellow;
     Console.WriteLine("Loading Classes..."); modDatabase.LoadClasses();
     Console.WriteLine("Loading Maps..."); modDatabase.LoadMaps();
     Console.WriteLine("Creating Map Matrices...");
     for (int i = 1; i < Constants.MAX_MAPS; i++)
     {
         modPathfinding.CreatePathMatrix(i);
     }
     Console.WriteLine("Loading Items..."); S_Items.LoadItems();
     Console.WriteLine("Loading Npc's..."); modDatabase.LoadNpcs();
     Console.WriteLine("Loading Resources..."); S_Resources.LoadResources();
     Console.WriteLine("Loading Shops..."); modDatabase.LoadShops();
     Console.WriteLine("Loading Skills..."); modDatabase.LoadSkills();
     Console.WriteLine("Loading Animations..."); S_Animations.LoadAnimations();
     Console.WriteLine("Loading Quests..."); S_Quest.LoadQuests();
     Console.WriteLine("Loading House Configurations..."); S_Housing.LoadHouses();
     Console.WriteLine("Loading Switches..."); S_Events.LoadSwitches();
     Console.WriteLine("Loading Variables..."); S_Events.LoadVariables();
     Console.WriteLine("Spawning global events..."); S_EventLogic.SpawnAllMapGlobalEvents();
     Console.WriteLine("Loading projectiles..."); S_Projectiles.LoadProjectiles();
     Console.WriteLine("Loading Recipes..."); modCrafting.LoadRecipes();
     Console.WriteLine("Loading Pets..."); S_Pets.LoadPets();
     Console.ResetColor();
 }
Exemple #2
0
 internal static void ClearGameData()
 {
     Console.WriteLine("Clearing temp tile fields..."); modDatabase.ClearTempTiles();
     Console.WriteLine("Clearing Maps..."); modDatabase.ClearMaps();
     Console.WriteLine("Clearing Map Items..."); modDatabase.ClearMapItems();
     Console.WriteLine("Clearing Map Npc's..."); modDatabase.ClearAllMapNpcs();
     Console.WriteLine("Clearing Npc's..."); modDatabase.ClearNpcs();
     Console.WriteLine("Clearing Resources..."); S_Resources.ClearResources();
     Console.WriteLine("Clearing Items..."); S_Items.ClearItems();
     Console.WriteLine("Clearing Shops..."); modDatabase.ClearShops();
     Console.WriteLine("Clearing Skills..."); modDatabase.ClearSkills();
     Console.WriteLine("Clearing Animations..."); S_Animations.ClearAnimations();
     Console.WriteLine("Clearing Quests..."); S_Quest.ClearQuests();
     Console.WriteLine("Clearing map projectiles..."); S_Projectiles.ClearMapProjectiles();
     Console.WriteLine("Clearing projectiles..."); S_Projectiles.ClearProjectiles();
     Console.WriteLine("Clearing Recipes..."); modCrafting.ClearRecipes();
     Console.WriteLine("Clearing pets..."); S_Pets.ClearPets();
 }
Exemple #3
0
 private static void LoadGameData()
 {
     Console.WriteLine("Loading Classes..."); modDatabase.LoadClasses();
     Console.WriteLine("Loading Maps..."); modDatabase.LoadMaps();
     Console.WriteLine("Loading Items..."); S_Items.LoadItems();
     Console.WriteLine("Loading Npc's..."); modDatabase.LoadNpcs();
     Console.WriteLine("Loading Resources..."); S_Resources.LoadResources();
     Console.WriteLine("Loading Shops..."); modDatabase.LoadShops();
     Console.WriteLine("Loading Skills..."); modDatabase.LoadSkills();
     Console.WriteLine("Loading Animations..."); S_Animations.LoadAnimations();
     Console.WriteLine("Loading Quests..."); S_Quest.LoadQuests();
     Console.WriteLine("Loading House Configurations..."); S_Housing.LoadHouses();
     Console.WriteLine("Loading Switches..."); S_Events.LoadSwitches();
     Console.WriteLine("Loading Variables..."); S_Events.LoadVariables();
     Console.WriteLine("Spawning global events..."); S_EventLogic.SpawnAllMapGlobalEvents();
     Console.WriteLine("Loading projectiles..."); S_Projectiles.LoadProjectiles();
     Console.WriteLine("Loading Recipes..."); modCrafting.LoadRecipes();
     Console.WriteLine("Loading Pets..."); S_Pets.LoadPets();
 }