Ejemplo n.º 1
0
        public TorchAlert(IConfig config, string linkDbPath, IParentsLookupTree <long> splitLookup)
        {
            _config = config;
            _linkDb = new DiscordIdentityLinkDb(linkDbPath);
            var steamIdExtractor = new AlertableSteamIdExtractor(_config, _linkDb);

            _defenderGridCollector    = new DefenderGridCollector(steamIdExtractor);
            _offenderProximityScanner = new OffenderProximityScanner(_config);
            _alertCreator             = new ProximityAlertCreator();
            _alertFilter        = new ProximityAlertFilter(_config, splitLookup);
            _identityLinker     = new DiscordIdentityLinker(_linkDb);
            _torchDiscordClient = new TorchDiscordClient(_config, _identityLinker);
            _alertDiscordClient = new AlertDiscordClient(_config, _torchDiscordClient);
        }
Ejemplo n.º 2
0
 public ProximityAlertFilter(IConfig config, IParentsLookupTree <long> splitLookup)
 {
     _config      = config;
     _splitLookup = splitLookup;
     _playersToLastOffenderIds = new Dictionary <ulong, HashSet <long> >();
 }