Esempio n. 1
0
 public void DisposeAll()
 {
     houseScanner.DisposeAll();
     houseScanner = null;
     RadarCanvas  = null; //.Children.RemoveRange(0, RadarCanvas.Children.Count);
     VectorCache  = null;
 }
Esempio n. 2
0
        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;
            }
        }