예제 #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);
        }
예제 #2
0
 public static void Reset()
 {
     Regions?.Clear();
     SubregionSystem.Reset();
 }
예제 #3
0
 public static void UpdateSystemAt(int x, int y)
 {
     SubregionSystem.UpdateSubregionAt(x, y);
     ResetRegions();
     CreateRegions();
 }
예제 #4
0
 public static void Initialize()
 {
     SubregionSystem.CreateSubregions();
     CreateRegions();
 }