///<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); } } }
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); } } } } }