public void RemoveSourceNoises(NoiseSource source)
 {
     Dijkstra.DijkstraTraversal(Noises, source, (noises, noise) =>
     {
         if (noises.Contains(noise))
         {
             noises.Remove(noise);
         }
     });
 }
 public void AddNoiseSource(NoiseSource source)
 {
     TemporaryObjectsManager.AddTemporaryObject(source);
     Dijkstra.DijkstraTraversal(Noises, source, (noises, noise) => { noises.Add(noise); });
 }
Beispiel #3
0
 public Noise(NoiseSource source, int intensity)
 {
     Source    = source;
     Intensity = intensity;
 }