Trait rosu_pp::BeatmapExt [−][src]
pub trait BeatmapExt {
fn stars(
&self,
mods: impl Mods,
passed_objects: Option<usize>
) -> DifficultyAttributes;
fn max_pp(&self, mods: u32) -> PerformanceAttributes;
fn pp(&self) -> AnyPP<'_>;
fn strains(&self, mods: impl Mods) -> Strains;
fn gradual_difficulty(
&self,
mods: impl Mods
) -> GradualDifficultyAttributes<'_>ⓘNotable traits for GradualDifficultyAttributes<'_>impl Iterator for GradualDifficultyAttributes<'_> type Item = DifficultyAttributes;
;
fn gradual_performance(&self, mods: u32) -> GradualPerformanceAttributes<'_>;
}
Expand description
Provides some additional methods on Beatmap
.
Required methods
Calculate the stars and other attributes of a beatmap which are required for pp calculation.
fn max_pp(&self, mods: u32) -> PerformanceAttributes
fn max_pp(&self, mods: u32) -> PerformanceAttributes
Calculate the max pp of a beatmap.
If you seek more fine-tuning you can use the pp
method.
Returns a builder for performance calculation.
Convenient method that matches on the map’s mode to choose the appropriate calculator.
Calculate the strains of a map.
This essentially performs the same calculation as a stars
function but
instead of evaluating the final strains, they are just returned as is.
Suitable to plot the difficulty of a map over time.
fn gradual_difficulty(&self, mods: impl Mods) -> GradualDifficultyAttributes<'_>ⓘNotable traits for GradualDifficultyAttributes<'_>impl Iterator for GradualDifficultyAttributes<'_> type Item = DifficultyAttributes;
fn gradual_difficulty(&self, mods: impl Mods) -> GradualDifficultyAttributes<'_>ⓘNotable traits for GradualDifficultyAttributes<'_>impl Iterator for GradualDifficultyAttributes<'_> type Item = DifficultyAttributes;
impl Iterator for GradualDifficultyAttributes<'_> type Item = DifficultyAttributes;
Return an iterator that gives you the DifficultyAttributes
after each hit object.
Suitable to efficiently get the map’s star rating after multiple different locations.
fn gradual_performance(&self, mods: u32) -> GradualPerformanceAttributes<'_>
fn gradual_performance(&self, mods: u32) -> GradualPerformanceAttributes<'_>
Return a struct that gives you the PerformanceAttributes
after every (few) hit object(s).
Suitable to efficiently get a score’s performance after multiple different locations, i.e. live update a score’s pp.