using System.Runtime.CompilerServices; namespace Server; public partial class Mobile { [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ItemAtEnumerable GetItemsAt() => m_Map == null ? Map.ItemAtEnumerable.Empty : m_Map.GetItemsAt(m_Location); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ItemAtEnumerable GetItemsAt() where T : Item => m_Map == null ? Map.ItemAtEnumerable.Empty : m_Map.GetItemsAt(m_Location); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ItemBoundsEnumerable GetItemsInRange(int range) => GetItemsInRange(range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ItemBoundsEnumerable GetItemsInRange(int range) where T : Item => m_Map == null ? Map.ItemBoundsEnumerable.Empty : m_Map.GetItemsInRange(m_Location, range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.MobileAtEnumerable GetMobilesInRange() => GetMobilesInRange(); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.MobileAtEnumerable GetMobilesInRange() where T : Mobile => m_Map == null ? Map.MobileAtEnumerable.Empty : m_Map.GetMobilesAt(m_Location); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.MobileBoundsEnumerable GetMobilesInRange(int range) => GetMobilesInRange(range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.MobileBoundsEnumerable GetMobilesInRange(int range) where T : Mobile => m_Map == null ? Map.MobileBoundsEnumerable.Empty : m_Map.GetMobilesInRange(m_Location, range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ClientAtEnumerable GetClientsAt() => m_Map == null ? Map.ClientAtEnumerable.Empty : Map.GetClientsAt(m_Location); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ClientBoundsEnumerable GetClientsInRange(int range) => m_Map == null ? Map.ClientBoundsEnumerable.Empty : Map.GetClientsInRange(m_Location, range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ItemDistanceEnumerable GetItemsInRangeByDistance(int range) => GetItemsInRangeByDistance(range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ItemDistanceEnumerable GetItemsInRangeByDistance(int range) where T : Item => m_Map == null ? default : m_Map.GetItemsInRangeByDistance(m_Location, range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.MobileDistanceEnumerable GetMobilesInRangeByDistance(int range) => GetMobilesInRangeByDistance(range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.MobileDistanceEnumerable GetMobilesInRangeByDistance(int range) where T : Mobile => m_Map == null ? default : m_Map.GetMobilesInRangeByDistance(m_Location, range); [MethodImpl(MethodImplOptions.AggressiveInlining)] public Map.ClientDistanceEnumerable GetClientsInRangeByDistance(int range) => m_Map == null ? default : m_Map.GetClientsInRangeByDistance(m_Location, range); }