30 lines
799 B
C#
Raw Normal View History

using HarmonyLib;
using QSB.Patches;
using QSB.Utility;
2021-06-12 15:58:34 +01:00
namespace QSB.TimeSync.Patches
{
[HarmonyPatch]
2021-07-12 22:02:50 +01:00
internal class TimePatches : QSBPatch
2021-06-12 15:58:34 +01:00
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
[HarmonyPrefix]
[HarmonyPatch(typeof(PlayerCameraEffectController), nameof(PlayerCameraEffectController.OnStartOfTimeLoop))]
2021-06-19 11:26:05 +01: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 15:58:34 +01:00
}
}