quantum-space-buddies/QSB/ShipSync/Messages/ShipLightMessage.cs

13 lines
305 B
C#
Raw Normal View History

2022-04-16 20:31:01 +00:00
using QSB.Messaging;
using QSB.ShipSync.WorldObjects;
namespace QSB.ShipSync.Messages;
2023-07-28 18:30:57 +00:00
public class ShipLightMessage : QSBWorldObjectMessage<QSBShipLight, bool>
2022-04-16 20:31:01 +00:00
{
public ShipLightMessage(bool on) : base(on) { }
public override void OnReceiveRemote() =>
2022-08-29 05:21:20 +00:00
WorldObject.AttachedObject.SetOn(Data);
2022-04-16 20:31:01 +00:00
}