2021-12-19 12:37:44 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using QSB.Events;
|
|
|
|
|
using QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects;
|
|
|
|
|
using QSB.Patches;
|
|
|
|
|
using QSB.WorldSync;
|
2021-12-23 22:58:16 +00:00
|
|
|
|
|
2021-12-19 12:37:44 +00:00
|
|
|
|
namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches
|
|
|
|
|
{
|
|
|
|
|
internal class QuantumInstrumentPatches : QSBPatch
|
|
|
|
|
{
|
|
|
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
|
|
|
|
|
|
|
|
|
[HarmonyPostfix]
|
2021-12-23 22:58:16 +00:00
|
|
|
|
[HarmonyPatch(typeof(QuantumInstrument), nameof(QuantumInstrument.Gather))]
|
2021-12-19 12:37:44 +00:00
|
|
|
|
public static void Gather(QuantumInstrument __instance)
|
|
|
|
|
=> QSBEventManager.FireEvent(EventNames.QSBGatherInstrument, QSBWorldSync.GetWorldFromUnity<QSBQuantumInstrument>(__instance));
|
|
|
|
|
}
|
|
|
|
|
}
|