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; } }
public HouseScanner(RadarPlotter plotter, RadarWindow radar) { radarPlotter = plotter; radarWindow = radar; ArcheBuddyCore = radar.ArcheBuddyCore; }