quantum-space-buddies/QSB/QuantumSync/Messages/SetIsQuantumMessage.cs
2022-01-11 17:48:36 -08:00

13 lines
363 B
C#

using QSB.Messaging;
using QSB.QuantumSync.WorldObjects;
namespace QSB.QuantumSync.Messages
{
public class SetIsQuantumMessage : QSBBoolWorldObjectMessage<IQSBQuantumObject>
{
public SetIsQuantumMessage(bool isQuantum) => Value = isQuantum;
public override void OnReceiveRemote() => ((QuantumObject)WorldObject.ReturnObject())._isQuantum = Value;
}
}