fix: Cleans up the GetXDistance methods. (#2279)

This commit is contained in:
Kamron Batman 2025-11-28 11:01:20 -08:00 committed by GitHub
parent f2ce860c18
commit 06443ba0ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 9 deletions

View file

@ -69,8 +69,8 @@ public partial class Map
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public MobileDistanceEnumerable<Mobile> GetMobilesInBoundsByDistance(Rectangle2D bounds) =>
GetMobilesInBoundsByDistance<Mobile>(bounds);
public MobileDistanceEnumerable<Mobile> GetMobilesInBoundsByDistance(Rectangle2D bounds, bool makeBoundsInclusive = false) =>
GetMobilesInBoundsByDistance<Mobile>(bounds, makeBoundsInclusive);
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public MobileDistanceEnumerable<T> GetMobilesInBoundsByDistance<T>(Rectangle2D bounds, bool makeBoundsInclusive = false) where T : Mobile =>