quantum-space-buddies/QSB/QuantumSync/Messages/SetIsQuantumMessage.cs

13 lines
363 B
C#
Raw Normal View History

2022-01-12 01:42:13 +00:00
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;
}
}