public static void Load() { // Load Accounts; foreach (Database.Account account in Database.ActiveRecord.Load <Database.Account>()) { Accounts.Add(account.id, account); } // Load Characters; foreach (Database.Character character in Database.ActiveRecord.Load <Database.Character>()) { Characters.Add(character.id, character); } // Load Npcs; foreach (Database.Npc npc in Database.ActiveRecord.Load <Database.Npc>()) { Npcs.Add(npc.id, npc); } // Load Npcs In World; foreach (NpcSpawn npcSpawn in Database.ActiveRecord.Load <NpcSpawn>()) { NpcSpawns.Add(npcSpawn.id, npcSpawn); } // Load Scenery In World; foreach (ScenerySpawnPoint scenery in ActiveRecord.Load <ScenerySpawnPoint>()) { scenery.Instantiate(); } }