quantum-space-buddies/QSB/EchoesOfTheEye/Prisoner/Messages/CellevatorCallMessage.cs

14 lines
430 B
C#
Raw Normal View History

2022-04-29 13:32:44 +00:00
using QSB.EchoesOfTheEye.Prisoner.WorldObjects;
using QSB.Messaging;
2022-05-11 17:39:18 +00:00
using QSB.Patches;
2022-04-29 13:32:44 +00:00
namespace QSB.EchoesOfTheEye.Prisoner.Messages;
internal class CellevatorCallMessage : QSBWorldObjectMessage<QSBPrisonCellElevator, int>
{
2022-05-11 17:39:18 +00:00
public CellevatorCallMessage(int floorIndex) : base(floorIndex) { }
2022-04-29 13:32:44 +00:00
2022-05-11 17:39:18 +00:00
public override void OnReceiveRemote() =>
QSBPatch.RemoteCall(() => WorldObject.AttachedObject.CallElevatorToFloor(Data));
2022-04-29 13:32:44 +00:00
}