// Constructor for new Waypoint Generation public Waypoint(Coordinates c, MarkerType marker, IslandType island) { this.Location = c; this.Island = island; this.Marker = marker; this.Name = string.Empty; this.Notes = String.Empty; }
public Waypoint GetWaypoint(Coordinates c) { return waypoints.Find(x => x.Location.X == c.X && x.Location.Y == c.Y); }
public bool HasWaypoint(Coordinates c) { return waypoints.Exists(x => x.Location.X == c.X && x.Location.Y == c.Y); }