Example #1
0
        public void Reset()
        {
            Content.Clear();
            foreach (Node node in Nodes)
            {
                node.Subregion = null;
            }
            Nodes.Clear();

            for (int i = NeighbouringSubregions.Count - 1; i >= 0; i--)
            {
                RemoveNeighbour(NeighbouringSubregions[i]);
            }

            Region?.RemoveSubregion(this);

            SubregionSystem.RemoveSubregion(this);
        }
Example #2
0
 public static void Reset()
 {
     Regions?.Clear();
     SubregionSystem.Reset();
 }
Example #3
0
 public static void UpdateSystemAt(int x, int y)
 {
     SubregionSystem.UpdateSubregionAt(x, y);
     ResetRegions();
     CreateRegions();
 }
Example #4
0
 public static void Initialize()
 {
     SubregionSystem.CreateSubregions();
     CreateRegions();
 }