Exemple #1
0
        public void UpdateLocal(Guid clientId, long solarsystemID, string[] characterNames)
        {
            _Logger.Info("UpdateLocal: " + clientId);
            ClientInfo clientInfo;

            lock (_ClientsLock) {
                if (!_Clients.TryGetValue(clientId, out clientInfo))
                {
                    return;
                }
            }

            EveApi eveApi = new EveApi(clientInfo.KeyId, clientInfo.VCode);
            Dictionary <long, string> characters = eveApi.GetCharacterIDLookup(characterNames.ToList()).ToDictionary(o => o.Value, o => o.Key);

            EveIntelCharacterInfo[] characterInfos = GetEveIntelCharacterInfos(solarsystemID, characters);

            DelayedBroadcast(new BroadcastMessage {
                Action    = client => { client.ClientIntelUpdate(characterInfos); },
                DebugInfo = "ClientLocalUpdate"
            });
        }
Exemple #2
0
        public void UpdateLocal(Guid clientId, long solarsystemID, string[] characterNames)
        {
            _Logger.Info("UpdateLocal: " + clientId);
            ClientInfo clientInfo;
            lock (_ClientsLock) {
                if (!_Clients.TryGetValue(clientId, out clientInfo)) {
                    return;
                }
            }

            EveApi eveApi = new EveApi(clientInfo.KeyId, clientInfo.VCode);
            Dictionary<long, string> characters = eveApi.GetCharacterIDLookup(characterNames.ToList()).ToDictionary(o => o.Value, o => o.Key);
            EveIntelCharacterInfo[] characterInfos = GetEveIntelCharacterInfos(solarsystemID, characters);

            DelayedBroadcast(new BroadcastMessage {
                Action = client => { client.ClientIntelUpdate(characterInfos); },
                DebugInfo = "ClientLocalUpdate"
            });
        }