Beispiel #1
0
		internal void reloaditems()
		{
			using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
			{
				this.ItemManager.LoadItems(queryreactor);
				this.globalInventory = new InventoryGlobal();
			}
		}
Beispiel #2
0
		internal void ContinueLoading()
		{
			using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
			{
                uint itemsLoaded = 0;
                uint catalogPageLoaded = 0;
                uint navigatorLoaded = 0;
                uint roomModelLoaded = 0;
                uint videoPlaylistLoaded = 0;
                uint achievementLoaded = 0;
                uint pollLoaded = 0;

				this.BanManager.LoadBans(queryreactor);
				this.RoleManager.LoadRights(queryreactor);
				this.ItemManager.LoadItems(queryreactor, out itemsLoaded);
                Logging.WriteLine("Loaded a total of " + itemsLoaded + " item definition(s).", ConsoleColor.DarkCyan);
				this.PinataHandler.Initialize(queryreactor);
				this.globalInventory = new InventoryGlobal();
				this.VideoManager.Load(queryreactor, out videoPlaylistLoaded);
                Logging.WriteLine("Loaded a total of " + videoPlaylistLoaded + " video playlist(s).", ConsoleColor.DarkCyan);
				this.Catalog.Initialize(queryreactor, out catalogPageLoaded);
                Logging.WriteLine("Loaded a total of " + catalogPageLoaded + " catalogue page(s).", ConsoleColor.DarkCyan);
				this.Navigator.Initialize(queryreactor, out navigatorLoaded);
                Logging.WriteLine("Loaded a total of " + navigatorLoaded + " official room(s).", ConsoleColor.DarkCyan);
                this.RoomManager.LoadModels(queryreactor, out roomModelLoaded);
                Logging.WriteLine("Loaded a total of " + roomModelLoaded + " room model(s).", ConsoleColor.DarkCyan);
				this.RoomManager.InitVotedRooms(queryreactor);
				this.AchievementManager = new AchievementManager(queryreactor, out achievementLoaded);
                Logging.WriteLine("Loaded a total of " + achievementLoaded + " achievement(s).", ConsoleColor.DarkCyan);
				this.questManager.Initialize(queryreactor);
				this.PollManager.Init(queryreactor, out pollLoaded);
                Logging.WriteLine("Loaded a total of " + pollLoaded + " poll(s).", ConsoleColor.DarkCyan);
				this.talentManager.Initialize(queryreactor);
				this.ModerationTool.LoadMessagePresets(queryreactor);
				this.ModerationTool.LoadPendingTickets(queryreactor);
				PetRace.Init(queryreactor);
				AntiPublicistas.Load(queryreactor);
				this.GetGroupManager().InitGroups();
				SongManager.Initialize();
				LowPriorityWorker.Init(queryreactor);
			}
			this.StartGameLoop();
			Console.ForegroundColor = ConsoleColor.DarkCyan;
			Logging.WriteLine("Game was succesfully loaded.", ConsoleColor.Cyan);
            PixelManager.StartPixelTimer();
		}