MetalButtplug/Patches/TestPatch.cs

14 lines
372 B
C#

using HarmonyLib;
namespace MetalButtplug.Patches;
[HarmonyPatch(typeof(BeatSequencer))]
[HarmonyPatch("UpdateBeat")]
class TestPatch {
static void Prefix(BeatStatusProvider beatStatus) {
if (beatStatus.BeatFlags.HasFlag(BeatFlags.Quarter)) {
Plugin.Log.LogInfo("Quarter beat: " + beatStatus.GetBeatProgress(BeatType.Quarter));
}
}
}