private void BufferDidFinishEvent(ScoreBuffer buffer) { if (buffer.ReturnScore() < Config.imperfectCutThreshold) { Fail(); } }
private void _spawnController_noteWasCutEvent(BeatmapObjectSpawnController arg1, NoteController noteController, NoteCutInfo cutInfo) { if (noteController.noteData.noteType != NoteType.Bomb && (Config.failOnBadCut && !cutInfo.allIsOK)) { Fail(); } if (noteController.noteData.noteType == NoteType.Bomb && Config.failOnBomb) { Fail(); } //Try to get score of the cut (Nevermind this isn't accurate) if (noteController.noteData.noteType != NoteType.Bomb && (Config.failOnImperfectCut && cutInfo.allIsOK)) { ScoreBuffer buffer = new ScoreBuffer(cutInfo, cutInfo.afterCutSwingRatingCounter); buffer.didFinishEvent += BufferDidFinishEvent; } }