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.

Better undefined `get_duration` behaviour and remove incorrect docs.

+1 -3
+1 -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 - /// # Undefined 64 - /// If the [`FilterType`] is `Undefined` then the result will be zero. 65 63 #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 66 64 fn get_duration(&self, group_size: i32) -> f32; 67 65 } ··· 125 123 DistributionType::Step => { 126 124 data.beat_offset + self.beat_dist_value * filtered_size as f32 127 125 } 128 - DistributionType::Undefined(_) => 0.0, 126 + DistributionType::Undefined(_) => data.beat_offset, 129 127 } 130 128 } 131 129 }