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

19 lines
581 B
C#
Raw Normal View History

2021-06-12 14:58:34 +00:00
using QSB.Patches;
namespace QSB.TimeSync.Patches
{
class TimePatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
public override void DoPatches()
=> QSBCore.HarmonyHelper.AddPrefix<PlayerCameraEffectController>("OnStartOfTimeLoop", typeof(TimePatches), nameof(PlayerCameraEffectController_OnStartOfTimeLoop));
public override void DoUnpatches()
=> QSBCore.HarmonyHelper.Unpatch<PlayerCameraEffectController>("OnStartOfTimeLoop");
public static bool PlayerCameraEffectController_OnStartOfTimeLoop()
=> false;
}
}