コード例 #1
0
        ///<summary>
        ///Refreshes Current Bounty Minimap Markers
        ///</summary>
        public void RefreshBountyMapMarkers()
        {
            CurrentBountyMapMarkers.Clear();

            //Disabled Setting?
            //if (!FunkyBaseExtension.Settings.AdventureMode.NavigatePointsOfInterest) return;

            using (ZetaDia.Memory.AcquireFrame())
            {
                foreach (var m in ZetaDia.Minimap.Markers.OpenWorldMarkers)
                {
                    var bmm = new BountyMapMarker(m.Position, m.DynamicWorldId, m.Id);
                    CurrentBountyMapMarkers.Add(bmm.GetHashCode(), bmm);
                }
            }
        }
コード例 #2
0
        public void RefreshRiftMapMarkers()
        {
            CurrentBountyMapMarkers.Clear();

            //Disabled Setting?
            //if (!FunkyBaseExtension.Settings.AdventureMode.NavigatePointsOfInterest) return;

            int exitHash = GetRiftWorldExitHash(FunkyGame.Hero.CurrentWorldID);

            if (exitHash != -1)
            {
                using (ZetaDia.Memory.AcquireFrame())
                {
                    foreach (var m in ZetaDia.Minimap.Markers.CurrentWorldMarkers)
                    {
                        if (m.NameHash == exitHash)
                        {
                            var bmm = new BountyMapMarker(m.Position, m.DynamicWorldId, m.Id);
                            CurrentBountyMapMarkers.Add(bmm.GetHashCode(), bmm);
                        }
                    }
                }
            }
        }
コード例 #3
0
ファイル: Bounty.cs プロジェクト: herbfunk/Funky
        public void RefreshRiftMapMarkers()
        {
            CurrentBountyMapMarkers.Clear();

            //Disabled Setting?
            //if (!FunkyBaseExtension.Settings.AdventureMode.NavigatePointsOfInterest) return;

            int exitHash = GetRiftWorldExitHash(FunkyGame.Hero.CurrentWorldID);
            if (exitHash != -1)
            {
                using (ZetaDia.Memory.AcquireFrame())
                {
                    foreach (var m in ZetaDia.Minimap.Markers.CurrentWorldMarkers)
                    {
                        if (m.NameHash == exitHash)
                        {
                            var bmm = new BountyMapMarker(m.Position, m.DynamicWorldId, m.Id);
                            CurrentBountyMapMarkers.Add(bmm.GetHashCode(), bmm);
                        }
                    }
                }
            }
        }
コード例 #4
0
ファイル: Bounty.cs プロジェクト: herbfunk/Funky
        ///<summary>
        ///Refreshes Current Bounty Minimap Markers
        ///</summary>
        public void RefreshBountyMapMarkers()
        {
            CurrentBountyMapMarkers.Clear();

            //Disabled Setting?
            //if (!FunkyBaseExtension.Settings.AdventureMode.NavigatePointsOfInterest) return;

            using (ZetaDia.Memory.AcquireFrame())
            {
                foreach (var m in ZetaDia.Minimap.Markers.OpenWorldMarkers)
                {
                    var bmm = new BountyMapMarker(m.Position, m.DynamicWorldId, m.Id);
                    CurrentBountyMapMarkers.Add(bmm.GetHashCode(), bmm);
                }
            }
        }