/// <summary> /// Removes the given instance from the server. /// </summary> /// <param name="instance"></param> public static void RemoveInstance(BaseInstance instance) { //Remove the region lock (m_regions.SyncRoot) { m_regions.Remove(instance.ID); } //Remove zones lock (m_zones.SyncRoot) { foreach (Zone zn in instance.Zones) { m_zones.Remove(zn.ID); } } instance.OnCollapse(); //Destroy the region once and for all. instance = null; }
public DelayCloseRegionTimer(TimeManager time, BaseInstance i) : base(time) { m_instance = i; }