17 lines
330 B
C#
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);
|
||
|
}
|
||
|
}
|