quantum-space-buddies/QSB/ElevatorSync/Messages/ElevatorMessage.cs

12 lines
317 B
C#
Raw Normal View History

2021-12-24 06:44:32 +00:00
using QSB.ElevatorSync.WorldObjects;
using QSB.Messaging;
namespace QSB.ElevatorSync.Messages
2021-12-24 06:44:32 +00:00
{
public class ElevatorMessage : QSBWorldObjectMessage<QSBElevator, bool>
{
public ElevatorMessage(bool isGoingUp) => Data = isGoingUp;
2021-12-24 06:44:32 +00:00
public override void OnReceiveRemote() => WorldObject.RemoteCall(Data);
}
2021-12-24 06:44:32 +00:00
}