mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
12 lines
439 B
C#
12 lines
439 B
C#
using QSB.EchoesOfTheEye.LightSensorSync.WorldObjects;
|
|
using QSB.Messaging;
|
|
|
|
namespace QSB.EchoesOfTheEye.LightSensorSync.Messages;
|
|
|
|
internal class SetIlluminatedMessage : QSBWorldObjectMessage<QSBLightSensor, bool>
|
|
{
|
|
public SetIlluminatedMessage(bool illuminated) : base(illuminated) { }
|
|
public override void OnReceiveLocal() => OnReceiveRemote();
|
|
public override void OnReceiveRemote() => WorldObject.SetIlluminated(From, Data);
|
|
}
|