quantum-space-buddies/QSB/QuantumSync/Patches/ClientQuantumPatches.cs

20 lines
990 B
C#
Raw Normal View History

2020-12-22 21:39:53 +00:00
using QSB.Patches;
namespace QSB.QuantumSync.Patches
2020-12-22 21:39:53 +00:00
{
2021-01-18 12:33:07 +00:00
public class ClientQuantumPatches : QSBPatch
2020-12-22 21:39:53 +00:00
{
public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect;
2020-12-24 10:06:17 +00:00
public override void DoPatches()
{
2021-01-18 12:33:07 +00:00
QSBCore.Helper.HarmonyHelper.AddPrefix<SocketedQuantumObject>("ChangeQuantumState", typeof(ClientQuantumPatches), nameof(ReturnFalsePatch));
QSBCore.Helper.HarmonyHelper.AddPrefix<MultiStateQuantumObject>("ChangeQuantumState", typeof(ClientQuantumPatches), nameof(ReturnFalsePatch));
QSBCore.Helper.HarmonyHelper.AddPrefix<QuantumShuffleObject>("ChangeQuantumState", typeof(ClientQuantumPatches), nameof(ReturnFalsePatch));
QSBCore.Helper.HarmonyHelper.AddPrefix<QuantumMoon>("ChangeQuantumState", typeof(ClientQuantumPatches), nameof(ReturnFalsePatch));
QSBCore.Helper.HarmonyHelper.AddPrefix<QuantumShrine>("ChangeQuantumState", typeof(ClientQuantumPatches), nameof(ReturnFalsePatch));
2020-12-24 10:06:17 +00:00
}
2020-12-22 21:39:53 +00:00
2020-12-24 10:06:17 +00:00
public static bool ReturnFalsePatch() => false;
2020-12-22 21:39:53 +00:00
}
2020-12-24 10:06:17 +00:00
}