Beatsaber Rust Utilities: A Beatsaber V3 parsing library.
beatsaber beatmap
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update `get_duration` to use `Undefined`.

+3 -3
+3 -3
src/difficulty/lightshow/group.rs
··· 60 60 fn get_value_offset(&self, light_id: i32, group_size: i32) -> f32; 61 61 62 62 /// Returns the duration of the group in beats. 63 - /// # Unknown 64 - /// If the [`FilterType`] is `Unknown` then the result will be zero. 63 + /// # Undefined 64 + /// If the [`FilterType`] is `Undefined` then the result will be zero. 65 65 #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 66 66 fn get_duration(&self, group_size: i32) -> f32; 67 67 } ··· 125 125 } 126 126 } 127 127 DistributionType::Step => self.beat_dist_value * filtered_size as f32, 128 - DistributionType::Unknown(_) => 0.0, 128 + DistributionType::Undefined(_) => 0.0, 129 129 } 130 130 } 131 131 }