2021-10-15 20:06:51 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using QSB.Patches;
|
2021-11-20 11:48:46 +00:00
|
|
|
|
using QSB.Utility;
|
2021-06-12 14:58:34 +00:00
|
|
|
|
|
|
|
|
|
namespace QSB.TimeSync.Patches
|
|
|
|
|
{
|
2021-10-15 20:06:51 +00:00
|
|
|
|
[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;
|
|
|
|
|
|
2021-10-15 20:06:51 +00:00
|
|
|
|
[HarmonyPrefix]
|
|
|
|
|
[HarmonyPatch(typeof(PlayerCameraEffectController), nameof(PlayerCameraEffectController.OnStartOfTimeLoop))]
|
2021-06-19 10:26:05 +00:00
|
|
|
|
public static bool PlayerCameraEffectController_OnStartOfTimeLoop()
|
2021-11-20 11:48:46 +00:00
|
|
|
|
{
|
|
|
|
|
DebugLog.DebugWrite($"OnStartOfTimeLoop");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2021-10-15 20:06:51 +00:00
|
|
|
|
[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
|
|
|
|
}
|
|
|
|
|
}
|