r2mods/ilspy_dump/ror2_csproj/RoR2/SerializablePickupIndex.cs

17 lines
330 B
C#

using System;
using UnityEngine;
namespace RoR2;
[Serializable]
public struct SerializablePickupIndex
{
[SerializeField]
public string pickupName;
public static explicit operator PickupIndex(SerializablePickupIndex serializablePickupIndex)
{
return PickupCatalog.FindPickupIndex(serializablePickupIndex.pickupName);
}
}