Example #1
0
 public void AddNeighbour(Subregion neighbour)
 {
     if (NeighbouringSubregions.Contains(neighbour))
     {
         return;
     }
     NeighbouringSubregions.Add(neighbour);
     neighbour.AddNeighbour(this);
 }
Example #2
0
 public void RemoveNeighbour(Subregion neighbour)
 {
     NeighbouringSubregions.Remove(neighbour);
     neighbour.NeighbouringSubregions.Remove(this);
 }