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

19 lines
445 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
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;
}
}