14 lines
372 B
C#
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));
|
|
}
|
|
}
|
|
}
|