r2mods/ilspy_dump/ror2_csproj/RoR2.DirectionalSearch/PickupSearchSelector.cs

19 lines
445 B
C#

using System.Runtime.InteropServices;
using UnityEngine;
namespace RoR2.DirectionalSearch;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct PickupSearchSelector : IGenericWorldSearchSelector<GenericPickupController>
{
public Transform GetTransform(GenericPickupController source)
{
return source.pickupDisplay.transform;
}
public GameObject GetRootObject(GenericPickupController source)
{
return source.gameObject;
}
}