mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
20 lines
645 B
C#
20 lines
645 B
C#
using HarmonyLib;
|
|
using QSB.EchoesOfTheEye.EclipseElevators.Messages;
|
|
using QSB.EchoesOfTheEye.EclipseElevators.WorldObjects;
|
|
using QSB.Messaging;
|
|
using QSB.Patches;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.EchoesOfTheEye.EclipseElevators.Patches;
|
|
|
|
internal class EclipseElevatorPatches : QSBPatch
|
|
{
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
|
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(ElevatorDestination), nameof(ElevatorDestination.OnPressInteract))]
|
|
public static void CallElevator(ElevatorDestination __instance) =>
|
|
__instance.GetWorldObject<QSBElevatorDestination>()
|
|
.SendMessage(new CallElevatorMessage());
|
|
}
|