Exemple #1
0
        public MessageProcessorCore(
            DamageParsingService damageParsingService,
            PositionTrackerService positionTrackerService,
            GeneralStateService generalStateService,
            AppSettings appSettings
            )
        {
            _processors = new List <IMessageProcessor> {
                new GdLogMessageProcessor(appSettings, damageParsingService),
                new PlayerPositionTrackerProcessor(positionTrackerService, appSettings),
                new GdGameEventProcessor(generalStateService),
                new PlayerDetectionProcessor(damageParsingService, appSettings),
                new DetectPlayerHitpointsProcessor(damageParsingService, appSettings),
                new PlayerResistMonitor(damageParsingService, appSettings)
            };

            _registerWindowDelegate   = CustomWndProc;
            _injectorCallbackDelegate = InjectorCallback;
            _window      = new RegisterWindow("GDDamageWindowClass", _registerWindowDelegate);
            _injector    = new InjectionHelper(new BackgroundWorker(), _injectorCallbackDelegate, false, "Grim Dawn", string.Empty, "Hook.dll");
            _appSettings = appSettings;
        }
 public PlayerDetectionProcessor(DamageParsingService damageParsingService, AppSettings appSettings)
 {
     _damageParsingService = damageParsingService;
     _appSettings          = appSettings;
 }
 public PlayerResistMonitor(DamageParsingService damageParsingService, AppSettings appSettings)
 {
     _damageParsingService = damageParsingService;
     _appSettings          = appSettings;
 }
Exemple #4
0
 public GdLogMessageProcessor(AppSettings appSettings, DamageParsingService damageParsingService)
 {
     _appSettings          = appSettings;
     _damageParsingService = damageParsingService;
 }
 public StatisticsService(DamageParsingService damageParsingService)
 {
     _damageParsingService = damageParsingService;
 }
Exemple #6
0
 public DetectPlayerHitpointsProcessor(DamageParsingService damageParsingService, AppSettings appSettings)
 {
     _damageParsingService = damageParsingService;
     _appSettings          = appSettings;
 }