quantum-space-buddies/QSB/ElevatorSync/Messages/ElevatorMessage.cs
2022-02-25 23:18:46 -08:00

11 lines
312 B
C#

using QSB.ElevatorSync.WorldObjects;
using QSB.Messaging;
namespace QSB.ElevatorSync.Messages;
public class ElevatorMessage : QSBWorldObjectMessage<QSBElevator, bool>
{
public ElevatorMessage(bool isGoingUp) => Value = isGoingUp;
public override void OnReceiveRemote() => WorldObject.RemoteCall(Value);
}