private void ParseEntity(MissionEntity entity) { if (NonIsolatedAgents.Contains(entity.Agent)) { return; } if (!IsolatedAgents.ContainsKey(entity.Agent)) { IsolatedAgents.Add(entity.Agent, entity.Country); } else { IsolatedAgents.Remove(entity.Agent); NonIsolatedAgents.Add(entity.Agent); } }
public bool IsAgentIsolated(string agent) { return(IsolatedAgents.ContainsKey(agent)); }