quantum-space-buddies/QSB/TimeSync/Patches/TimePatches.cs

30 lines
799 B
C#
Raw Normal View History

using HarmonyLib;
using QSB.Patches;
using QSB.Utility;
2021-06-12 14:58:34 +00:00
namespace QSB.TimeSync.Patches
{
[HarmonyPatch]
2021-07-12 21:02:50 +00:00
internal class TimePatches : QSBPatch
2021-06-12 14:58:34 +00:00
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
[HarmonyPrefix]
[HarmonyPatch(typeof(PlayerCameraEffectController), nameof(PlayerCameraEffectController.OnStartOfTimeLoop))]
2021-06-19 10:26:05 +00:00
public static bool PlayerCameraEffectController_OnStartOfTimeLoop()
{
DebugLog.DebugWrite($"OnStartOfTimeLoop");
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(OWTime), nameof(OWTime.Pause))]
public static bool StopPausing()
=> false;
[HarmonyPrefix]
[HarmonyPatch(typeof(SubmitActionSkipToNextLoop), nameof(SubmitActionSkipToNextLoop.AdvanceToNewTimeLoop))]
public static bool StopMeditation()
=> false;
2021-06-12 14:58:34 +00:00
}
}