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