fruits: minor adjustment

This commit is contained in:
MaxOhn
2021-01-18 10:12:17 +01:00
parent 6c1a204b41
commit aae601a91e
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -60,8 +60,10 @@ impl<'m> FruitsPP<'m> {
/// If you already calculated the attributes for the current map-mod combination, /// If you already calculated the attributes for the current map-mod combination,
/// be sure to put them in here so that they don't have to be recalculated. /// be sure to put them in here so that they don't have to be recalculated.
#[inline] #[inline]
pub fn attributes(mut self, attributes: DifficultyAttributes) -> Self { pub fn attributes(mut self, attributes: impl FruitsAttributeProvider) -> Self {
self.attributes.replace(attributes); if let Some(attributes) = attributes.attributes() {
self.attributes.replace(attributes);
}
self self
} }
+1
View File
@@ -32,6 +32,7 @@ pub struct TaikoPP<'m> {
passed_objects: Option<usize>, passed_objects: Option<usize>,
} }
// TODO: n300 & n100
impl<'m> TaikoPP<'m> { impl<'m> TaikoPP<'m> {
#[inline] #[inline]
pub fn new(map: &'m Beatmap) -> Self { pub fn new(map: &'m Beatmap) -> Self {