quantum-space-buddies/QSB/EchoesOfTheEye/Prisoner/Messages/CellevatorCallMessage.cs
2022-05-11 10:39:18 -07:00

14 lines
430 B
C#

using QSB.EchoesOfTheEye.Prisoner.WorldObjects;
using QSB.Messaging;
using QSB.Patches;
namespace QSB.EchoesOfTheEye.Prisoner.Messages;
internal class CellevatorCallMessage : QSBWorldObjectMessage<QSBPrisonCellElevator, int>
{
public CellevatorCallMessage(int floorIndex) : base(floorIndex) { }
public override void OnReceiveRemote() =>
QSBPatch.RemoteCall(() => WorldObject.AttachedObject.CallElevatorToFloor(Data));
}