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

18 lines
764 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
{
public class ClientQuantumStateChangePatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect;
2020-12-24 10:06:17 +00:00
public override void DoPatches()
{
QSBCore.Helper.HarmonyHelper.AddPrefix<SocketedQuantumObject>("ChangeQuantumState", typeof(ClientQuantumStateChangePatches), nameof(ReturnFalsePatch));
QSBCore.Helper.HarmonyHelper.AddPrefix<MultiStateQuantumObject>("ChangeQuantumState", typeof(ClientQuantumStateChangePatches), nameof(ReturnFalsePatch));
2021-01-01 10:17:35 +00:00
QSBCore.Helper.HarmonyHelper.AddPrefix<QuantumShuffleObject>("ChangeQuantumState", typeof(ClientQuantumStateChangePatches), 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
}