public CaptureWindowService(IHandleService handleService, ILogService logService) { this.handleService = handleService; this.logService = logService; windowBitmaps = new Dictionary <string, Bitmap>(); graphics = new Dictionary <string, Graphics>(); handleService.HandleStatusChanged += OnHandleChanged; }
public SkillCastingService(IEventBus eventBus, ISettingsService settingsService, IConditionFinderService conditionFinderService, IModelService modelService, IHandleService handleService, ILogService logService) : base(eventBus) { this.modelService = modelService; this.settingsService = settingsService; this.logService = logService; this.conditionFinderService = conditionFinderService; this.handleService = handleService; var skillSubscription = new Subscription <SkillCanBeCastedEvent>(OnSkilCanBeCasted); SubscribeBus(skillSubscription); }
public ExecuteActionService(IEventBus eventBus, ISettingsService settingsService, ILogService logService, IActionFinderService actionFinderService, IHandleService handleService ) : base(eventBus) { this.settingsService = settingsService; this.actionFinderService = actionFinderService; this.handleService = handleService; this.logService = logService; var executeAction = new Subscription <HotkeyPressedEvent>(OnHotkeyPressed); var executeSmartAction = new Subscription <WorldInformationChangedEvent>(OnWorldInformationChanged); SubscribeBus(executeAction); SubscribeBus(executeSmartAction); }
public OverviewTabViewModel(IEventBus eventBus, IModelService modelService, IHandleService handleService, ISettingsService settingsService, IStartProcessService processService) { this.eventBus = eventBus; this.modelService = modelService; this.handleService = handleService; this.settingsService = settingsService; this.processService = processService; var playerInformationChanged = new Subscription <PlayerInformationChangedEvent>(OnPlayerInformationChanged); var skillRecognitionChanged = new Subscription <SkillRecognitionChangedEvent>(OnSkillRecognitionChanged); var worldInformationChanged = new Subscription <WorldInformationChangedEvent>(OnWorldInformationChanged); var skillCanBeCasted = new Subscription <SkillCanBeCastedEvent>(OnSkillCanBeCasted); var hotkeyPressed = new Subscription <HotkeyPressedEvent>(OnHotkeyPressed); SubscribeBus(playerInformationChanged); SubscribeBus(skillRecognitionChanged); SubscribeBus(worldInformationChanged); SubscribeBus(skillCanBeCasted); SubscribeBus(hotkeyPressed); handleService.HandleStatusChanged += OnHandleChanged; CurrentSkills = new ObservableCollection <string> { "pack://application:,,,/Resource/Skill/EmptyFrame.png", "pack://application:,,,/Resource/Skill/EmptyFrame.png", "pack://application:,,,/Resource/Skill/EmptyFrame.png", "pack://application:,,,/Resource/Skill/EmptyFrame.png", "pack://application:,,,/Resource/Skill/EmptyFrame.png", "pack://application:,,,/Resource/Skill/EmptyFrame.png", }; CurrentSkillState = new ObservableCollection <string> { "Cant cast", "Cant cast", "Cant cast", "Cant cast", "Cant cast", "Cant cast" }; CurrentActiveState = new ObservableCollection <string> { "Not active", "Not active", "Not active", "Not active", "Not active", "Not active", }; CurrentPlayerClass = "pack://application:,,,/Resource/Skill/EmptyFrame.png"; CurrentHealth = 0; CurrentPrimaryResource = 0; CurrentPrimaryResource = 0; var handle = handleService.GetHandle("Diablo III64"); DiabloProcessId = handle != null ? handle.ProcessId : 0; DiabloClientRectangle = handle != null ? $"{handle.ClientRectangle.Width}x{handle.ClientRectangle.Height}" : "0x0"; SkillIndexSuspensionStatus = new ObservableCollection <bool>(settingsService.SmartFeatureSettings.SkillSuspensionStatus); }
public ResourceService(IImageCacheService cacheService, IHandleService handleService, ILogService logService) { this.cacheService = cacheService; this.logService = logService; this.handleService = handleService; }
public TransformService(IHandleService handleService) { this.handleService = handleService; }