This commit is contained in:
JohnCorby 2022-07-25 09:20:44 -07:00
parent 68e166543e
commit 1db348953e

View File

@ -3,11 +3,19 @@ using UnityEngine;
namespace QSB.ItemSync;
/// <summary>
/// used for initial state sync.
/// we have to store this separately because its not saved in the item itself, unfortunately.
/// </summary>
public class ItemState
{
public ItemStateType State;
/// <summary>
/// if this is false, there's no need to sync initial state for this item
/// </summary>
public bool HasBeenInteractedWith;
public ItemStateType State;
// on ground
public Transform Parent;
public Vector3 LocalPosition;
@ -30,4 +38,4 @@ public enum ItemStateType
OnGround,
Held,
Socketed
}
}