mu3-mods/PlatinumTiming/MU3.Battle/patch_Counters.cs

27 lines
778 B
C#

using MU3.Notes;
namespace MU3.Battle;
class patch_Counters: Counters {
public int PlatinumFastCount { get; private set; } = 0;
public int PlatinumLateCount { get; private set; } = 0;
public extern void orig_addPlatinumScore(Judge judge, Timing timing);
public new void addPlatinumScore(Judge judge, Timing timing) {
orig_addPlatinumScore(judge, timing);
if(judge == Judge.Perfect) {
if(timing == Timing.Fast) {
PlatinumFastCount += 1;
} else if(timing == Timing.Late) {
PlatinumLateCount += 1;
}
}
}
public extern void orig_reset();
public new void reset() {
orig_reset();
PlatinumFastCount = 0;
PlatinumLateCount = 0;
}
}