quantum-space-buddies/QSB/ShipSync/Messages/ShipLightMessage.cs
2022-08-28 22:21:20 -07:00

13 lines
307 B
C#

using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
namespace QSB.ShipSync.Messages;
internal class ShipLightMessage : QSBWorldObjectMessage<QSBShipLight, bool>
{
public ShipLightMessage(bool on) : base(on) { }
public override void OnReceiveRemote() =>
WorldObject.AttachedObject.SetOn(Data);
}