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