public MoveToMapMarkerCoroutine(int questId, int worldId, WorldMarkerType type, bool zergAllowSafe = true) { _questId = questId; _worldId = worldId; _markerType = type; _allowSafeZerg = zergAllowSafe; Id = Guid.NewGuid(); }
public static TrinityMarker ScanForMarker(WorldMarkerType type, int searchRadius) { return(Core.Markers.FirstOrDefault(m => m.MarkerType == type && m.Position.Distance(AdvDia.MyPosition) <= searchRadius && !EntryPortals.IsEntryPortal(AdvDia.CurrentWorldDynamicId, m.NameHash))); }
public static TrinityMarker ScanForMarker(int markerNameHash, WorldMarkerType type, int searchRadius) { return(Core.Markers.Where(m => m.NameHash == markerNameHash && m.Position.Distance(AdvDia.MyPosition) <= searchRadius && !EntryPortals.IsEntryPortal(AdvDia.CurrentWorldDynamicId, m.NameHash)).OrderByDescending(a => a.MarkerType == type).FirstOrDefault()); }
public static Vector3 ScanForMarkerLocation(WorldMarkerType type, int searchRadius) { var marker = Core.Markers.FirstOrDefault(m => m.MarkerType == type && m.Position.Distance(AdvDia.MyPosition) <= searchRadius && !EntryPortals.IsEntryPortal(AdvDia.CurrentWorldDynamicId, m.NameHash)); return(marker?.Position ?? Vector3.Zero); }
public TrinityMarker FindMarker(WorldMarkerType type) => CurrentWorldMarkers.Where(m => m.MarkerType == type).OrderBy(m => m.Distance).FirstOrDefault();