Ejemplo n.º 1
0
 public MoveToMapMarkerCoroutine(int questId, int worldId, WorldMarkerType type, bool zergAllowSafe = true)
 {
     _questId       = questId;
     _worldId       = worldId;
     _markerType    = type;
     _allowSafeZerg = zergAllowSafe;
     Id             = Guid.NewGuid();
 }
Ejemplo n.º 2
0
 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)));
 }
Ejemplo n.º 3
0
 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());
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public TrinityMarker FindMarker(WorldMarkerType type)
 => CurrentWorldMarkers.Where(m => m.MarkerType == type).OrderBy(m => m.Distance).FirstOrDefault();