public void DisposeAll() { houseScanner.DisposeAll(); houseScanner = null; RadarCanvas = null; //.Children.RemoveRange(0, RadarCanvas.Children.Count); VectorCache = null; }
public RadarPlotter(RadarWindow _radarWindow) { radarWindow = _radarWindow; RadarCanvas = radarWindow.RadarCanvas; RadarArea = radarWindow.RadarArea; PlayerDot = radarWindow.PlayerDot; PlayerViewingDirection = radarWindow.PlayerViewingDirection; VectorCache = new Dictionary <uint, UIElement>(); TextCache = new Dictionary <uint, UIElement>(); DotCache = new Dictionary <uint, UIElement>(); houseScanner = new HouseScanner(this, radarWindow); ThunderBeeped = new Dictionary <uint, bool>(); ArcheBuddyCore = radarWindow.ArcheBuddyCore; if (ArcheBuddyCore != null) { DrawPlayer(); ArcheBuddyCore.onDoodadRemoved += RemoveObjectFromRadar; ArcheBuddyCore.onCreatureRemoved += RemoveObjectFromRadar; } }