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

12 lines
333 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
2022-01-12 01:42:13 +00:00
{
public class SetIsQuantumMessage : QSBWorldObjectMessage<IQSBQuantumObject, bool>
{
public SetIsQuantumMessage(bool isQuantum) => Value = isQuantum;
2022-01-12 01:42:13 +00:00
public override void OnReceiveRemote() => WorldObject.SetIsQuantum(Value);
}
}