mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
Add patch to call the event lol
This commit is contained in:
parent
a2469954f0
commit
33f9cdbf0a
@ -0,0 +1,18 @@
|
||||
using HarmonyLib;
|
||||
using QSB.EchoesOfTheEye.PictureFrameDoors.Messages;
|
||||
using QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects;
|
||||
using QSB.Messaging;
|
||||
using QSB.Patches;
|
||||
using QSB.WorldSync;
|
||||
|
||||
namespace QSB.EchoesOfTheEye.PictureFrameDoors.Patches;
|
||||
|
||||
internal class PictureFrameDoorInterfacePatches : QSBPatch
|
||||
{
|
||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PictureFrameDoorInterface), nameof(PictureFrameDoorInterface.ToggleOpenState))]
|
||||
public static void ToggleOpenState(PictureFrameDoorInterface __instance)
|
||||
=> __instance.GetWorldObject<IQSBPictureFrameDoor>().SendMessage(new PictureFrameDoorMessage(__instance._door.IsOpen()));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user