Exemple #1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="zoneItemsController">The zone completion controller</param>
        /// <param name="zoneName">The zone name view model</param>
        public ZoneCompletionView(IZoneCompletionController zoneItemsController, IHasZoneName zoneName)
        {
            logger.Debug("New ZoneCompletionView created");
            this.controller  = zoneItemsController;
            this.DataContext = new ZoneCompletionViewModel(this.controller, zoneName);
            InitializeComponent();

            // Save the height values for use when collapsing the window
            this.MinHeight = minHeight;
            this.Height    = Properties.Settings.Default.ZoneAssistantHeight;

            this.Closing += ZoneCompletionView_Closing;
            this.beforeCollapseHeight = this.Height;
        }
Exemple #2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="zoneService">The zone service</param>
        /// <param name="playerService">The player service</param>
        /// <param name="systemService">The system service</param>
        /// <param name="zoneNameObject">Zone name viewmodel object</param>
        /// <param name="userSettings">User settings</param>
        public ZoneCompletionController(IZoneService zoneService, IPlayerService playerService, ISystemService systemService, IHasZoneName zoneNameObject, ZoneCompletionSettings userSettings)
        {
            logger.Debug("Initializing Zone Completion Controller");
            this.zoneService    = zoneService;
            this.playerService  = playerService;
            this.systemService  = systemService;
            this.zoneNameObject = zoneNameObject;

            this.UserSettings = userSettings;

            // Initialize refresh timers
            this.zoneRefreshTimer          = new Timer(this.RefreshZone);
            this.ZoneRefreshInterval       = 1000;
            this.itemLocationsRefreshTimer = new Timer(this.RefreshLocations);
            this.LocationsRefreshInterval  = 250; // TODO: Tweak this until we get good performance without sucking up the CPU

            this.startCallCount = 0;
            this.CurrentMapID   = -1;
            logger.Info("Zone Completion Controller initialized");
        }
        public ZoneCompletionController(IZoneService zoneService, IPlayerService playerService, ISystemService systemService, IHasZoneName zoneNameObject, ZoneCompletionUserData userData)
        {
            logger.Debug("Initializing Zone Completion Controller");
            this.zoneService    = zoneService;
            this.playerService  = playerService;
            this.systemService  = systemService;
            this.zoneNameObject = zoneNameObject;
            this.isStopped      = false;

            this.CharacterPosition = new API.Data.Entities.Point();
            this.CameraDirection   = new API.Data.Entities.Point();

            this.UserData = userData;

            // Initialize refresh timers
            this.zoneRefreshTimer          = new Timer(this.RefreshZone);
            this.ZoneRefreshInterval       = 1000;
            this.itemLocationsRefreshTimer = new Timer(this.RefreshLocations);
            this.LocationsRefreshInterval  = 250; // TODO: Tweak this until we get good performance without sucking up the CPU

            this.startCallCount = 0;
            this.CurrentMapID   = -1;
            logger.Info("Zone Completion Controller initialized");
        }
        public ZoneCompletionController(IZoneService zoneService, IPlayerService playerService, ISystemService systemService, IHasZoneName zoneNameObject, ZoneCompletionUserData userData)
        {
            logger.Debug("Initializing Zone Completion Controller");
            this.zoneService = zoneService;
            this.playerService = playerService;
            this.systemService = systemService;
            this.zoneNameObject = zoneNameObject;
            this.isStopped = false;

            this.CharacterPosition = new API.Data.Entities.Point();
            this.CameraDirection = new API.Data.Entities.Point();

            this.UserData = userData;

            // Initialize refresh timers
            this.zoneRefreshTimer = new Timer(this.RefreshZone);
            this.ZoneRefreshInterval = 1000;
            this.itemLocationsRefreshTimer = new Timer(this.RefreshLocations);
            this.LocationsRefreshInterval = 250; // TODO: Tweak this until we get good performance without sucking up the CPU

            this.startCallCount = 0;
            this.CurrentMapID = -1;
            logger.Info("Zone Completion Controller initialized");
        }
Exemple #5
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="zoneCompletionController">The zone completion controller</param>
 /// <param name="zoneNameVm">The zone name view model</param>
 public ZoneCompletionViewModel(IZoneCompletionController zoneCompletionController, IHasZoneName zoneNameVm)
 {
     this.controller = zoneCompletionController;
     this.ZoneNameVM = zoneNameVm;
 }