wip mania pp update

This commit is contained in:
MaxOhn
2022-10-09 16:37:49 +02:00
parent 5eb8dab588
commit 4bb2fca50c
20 changed files with 852 additions and 465 deletions
-8
View File
@@ -44,14 +44,6 @@ impl HitObject {
pub fn is_spinner(&self) -> bool {
matches!(self.kind, HitObjectKind::Spinner { .. })
}
/// The column of this node for osu!mania
#[inline]
pub fn column(&self, total_columns: f32) -> u8 {
let x_divisor = 512.0 / total_columns;
(self.pos.x / x_divisor).floor().min(total_columns - 1.0) as u8
}
}
impl PartialOrd for HitObject {