Esempio n. 1
0
 public void RemoveDetector(FogOfWarDetector detector)
 {
     if (fogDetectors.ContainsKey(detector.Name))
     {
         fogDetectors.Remove(detector.Name);
         Log.Debug($"Detector {detector.Name} has been removed from the fog of war system.");
     }
 }
Esempio n. 2
0
        public void AddDetector(FogOfWarDetector detector)
        {
            if (fogDetectors.ContainsKey(detector.Name))
            {
                return;
            }

            fogDetectors.Add(detector.Name, detector);
            Log.Debug($"Detector {detector.Name} has been added to the fog of war system.");
        }