quantum-space-buddies/QSB/QuantumSync/QSBMultiStateQuantumObject.cs
2020-12-24 10:06:17 +00:00

18 lines
429 B
C#

using OWML.Utils;
using QSB.WorldSync;
namespace QSB.QuantumSync
{
public class QSBMultiStateQuantumObject : WorldObject<MultiStateQuantumObject>
{
public QuantumState[] QuantumStates { get; private set; }
public override void Init(MultiStateQuantumObject attachedObject, int id)
{
ObjectId = id;
AttachedObject = attachedObject;
QuantumStates = AttachedObject.GetValue<QuantumState[]>("_states");
}
}
}