mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
33 lines
826 B
C#
33 lines
826 B
C#
|
using OWML.Common;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace QSB.Utility
|
|||
|
{
|
|||
|
public static class Patches
|
|||
|
{
|
|||
|
private static void ProbeAnchor()
|
|||
|
{
|
|||
|
GlobalMessenger.FireEvent("QSBOnProbeAnchor");
|
|||
|
}
|
|||
|
|
|||
|
private static bool ProbeWarp(ref bool ____isRetrieving)
|
|||
|
{
|
|||
|
if (!____isRetrieving)
|
|||
|
{
|
|||
|
GlobalMessenger.FireEvent("QSBOnProbeWarp");
|
|||
|
}
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
public static void DoPatches(IHarmonyHelper helper)
|
|||
|
{
|
|||
|
helper.AddPostfix<SurveyorProbe>("OnAnchor", typeof(Patches), nameof(ProbeAnchor));
|
|||
|
helper.AddPrefix<SurveyorProbe>("Retrieve", typeof(Patches), nameof(ProbeWarp));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|