public DungeonsController(IDungeonsService dungeonsService, IZoneService zoneService, IPlayerService playerService, IWebBrowserController browserController, DungeonsUserData userData) { logger.Debug("Initializing Dungeons Controller"); this.dungeonsService = dungeonsService; this.zoneService = zoneService; this.playerService = playerService; this.browserController = browserController; this.userData = userData; this.isStopped = false; this.tickStopped = false; this.currentRunTimeSaved = false; // Initialize the dungeon timer view model this.DungeonTimerData = new DungeonTimerViewModel(userData); // Initialize the refresh timer this.dungeonsRefreshTimer = new Timer(this.Refresh); this.RefreshInterval = 250; // Initialize the start call count to 0 this.startCallCount = 0; // Initialize the dungeons this.InitializeDungeons(); // This takes a while, so do it on a background thread Task.Factory.StartNew(() => { this.InitializeDungeonZoneNames(); }); logger.Info("Dungeons Controller initialized"); }
public DungeonsController(IDungeonsService dungeonsService, IAchievementsService achievementsService, IItemsService itemsService, INPCsService NPCsService, AuthorizerService authorizerService) { _dungeonsService = dungeonsService; _authorizerService = authorizerService; _achievementsService = achievementsService; _itemsService = itemsService; _NPCsService = NPCsService; }
/// <summary> /// Default constructor /// </summary> /// <param name="dungeonsService">The dungeons service object</param> /// <param name="userSettings">The dungeons user settings object</param> public DungeonsController(IDungeonsService dungeonsService, IBrowserController browserController, DungeonSettings userSettings) { logger.Debug("Initializing Dungeons Controller"); this.dungeonsService = dungeonsService; this.browserController = browserController; this.userSettings = userSettings; // Initialize the refresh timer this.dungeonsRefreshTimer = new Timer(this.RefreshDungeons); this.RefreshInterval = 1000; // Initialize the start call count to 0 this.startCallCount = 0; // Initialize the WorldEvents collection this.InitializeDungeons(); logger.Info("Dungeons Controller initialized"); }