Exemplo n.º 1
0
 public AlertableSteamIdExtractor(IConfig config, DiscordIdentityLinkDb links)
 {
     _config                  = config;
     _links                   = links;
     _allPlayerIds            = new Dictionary <long, ulong>();
     _cachedAlertableSteamIds = new Dictionary <long, HashSet <ulong> >();
 }
Exemplo n.º 2
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);
        }