feat: added method AnyPP::hitresult_priority
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
- __Additions:__
|
- __Additions:__
|
||||||
- Added `From<u8>` impl for `GameMode`
|
- Added `From<u8>` impl for `GameMode`
|
||||||
|
- Added the method `AnyPP::hitresult_priority`
|
||||||
|
|
||||||
# v0.9.5 (2023-09-06)
|
# v0.9.5 (2023-09-06)
|
||||||
|
|
||||||
|
|||||||
@@ -198,6 +198,19 @@ impl<'map> AnyPP<'map> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Specify how hitresults should be generated.
|
||||||
|
///
|
||||||
|
/// Defauls to [`HitResultPriority::BestCase`].
|
||||||
|
#[inline]
|
||||||
|
pub fn hitresult_priority(self, priority: HitResultPriority) -> Self {
|
||||||
|
match self {
|
||||||
|
Self::Osu(o) => Self::Osu(o.hitresult_priority(priority)),
|
||||||
|
Self::Taiko(t) => Self::Taiko(t.hitresult_priority(priority)),
|
||||||
|
Self::Catch(_) => self, // FIXME: update when ctb hitresult generation is updated
|
||||||
|
Self::Mania(m) => Self::Mania(m.hitresult_priority(priority)),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Specify the amount of 300s of a play.
|
/// Specify the amount of 300s of a play.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn n300(self, n300: usize) -> Self {
|
pub fn n300(self, n300: usize) -> Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user