r2mods/ilspy_dump/ror2_csproj/RoR2/SerializablePickupIndex.cs

17 lines
330 B
C#
Raw Normal View History

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