Skip to content

Commit

Permalink
feat: add slider hitresult methods to Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Oct 31, 2024
1 parent 4053623 commit 19609cb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/any/performance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,28 @@ impl<'map> Performance<'map> {
}
}

/// Specify the amount of hit slider ticks.
///
/// Only relevant for osu!standard.
pub fn n_slider_ticks(self, n_slider_ticks: u32) -> Self {
if let Self::Osu(osu) = self {
Self::Osu(osu.n_slider_ticks(n_slider_ticks))
} else {
self
}
}

/// Specify the amount of hit slider ends.
///
/// Only relevant for osu!standard.
pub fn n_slider_ends(self, n_slider_ends: u32) -> Self {
if let Self::Osu(osu) = self {
Self::Osu(osu.n_slider_ends(n_slider_ends))
} else {
self
}
}

/// Specify the amount of 300s of a play.
pub fn n300(self, n300: u32) -> Self {
match self {
Expand Down

0 comments on commit 19609cb

Please sign in to comment.