mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
18 lines
618 B
C#
18 lines
618 B
C#
|
using HarmonyLib;
|
|||
|
using QSB.Events;
|
|||
|
using QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects;
|
|||
|
using QSB.Patches;
|
|||
|
using QSB.WorldSync;
|
|||
|
namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches
|
|||
|
{
|
|||
|
internal class QuantumInstrumentPatches : QSBPatch
|
|||
|
{
|
|||
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
|||
|
|
|||
|
[HarmonyPostfix]
|
|||
|
[HarmonyPatch(typeof(QuantumInstrument), nameof(QuantumInstrument.OnPressInteract))]
|
|||
|
public static void Gather(QuantumInstrument __instance)
|
|||
|
=> QSBEventManager.FireEvent(EventNames.QSBGatherInstrument, QSBWorldSync.GetWorldFromUnity<QSBQuantumInstrument>(__instance));
|
|||
|
}
|
|||
|
}
|