Exemplo n.º 1
0
		internal void reloaditems()
		{
			using (IQueryAdapter queryreactor = CyberEnvironment.GetDatabaseManager().getQueryReactor())
			{
				this.ItemManager.LoadItems(queryreactor);
				this.globalInventory = new InventoryGlobal();
			}
		}
Exemplo n.º 2
0
		internal void start()
		{
			using (IQueryAdapter queryReactor = CyberEnvironment.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).");
				this.PinataHandler.Initialize(queryReactor);
				this.globalInventory = new InventoryGlobal();
				this.VideoManager.Load(queryReactor, out videoPlaylistLoaded);
                Logging.WriteLine("Loaded a total of " + videoPlaylistLoaded + " video playlist(s).");
				this.Catalog.Initialize(queryReactor, out catalogPageLoaded);
                Logging.WriteLine("Loaded a total of " + catalogPageLoaded + " catalogue page(s).");
				this.Navigator.Initialize(queryReactor, out navigatorLoaded);
                Logging.WriteLine("Loaded a total of " + navigatorLoaded + " official room(s).");
                this.RoomManager.LoadModels(queryReactor, out roomModelLoaded);
                Logging.WriteLine("Loaded a total of " + roomModelLoaded + " room model(s).");
				this.RoomManager.InitVotedRooms(queryReactor);
				this.AchievementManager = new AchievementManager(queryReactor, out achievementLoaded);
                Logging.WriteLine("Loaded a total of " + achievementLoaded + " achievement(s).");
				this.questManager.Initialize(queryReactor);
				this.PollManager.Init(queryReactor, out pollLoaded);
                Logging.WriteLine("Loaded a total of " + pollLoaded + " poll(s).");
				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();
            PixelManager.StartPixelTimer();
		}