2020-12-22 21:39:53 +00:00
|
|
|
|
using QSB.Patches;
|
|
|
|
|
|
2020-12-31 12:10:55 +00:00
|
|
|
|
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));
|
2021-01-03 09:52:34 +00:00
|
|
|
|
QSBCore.Helper.HarmonyHelper.AddPrefix<QuantumMoon>("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
|
|
|
|
}
|