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.

Updated experimental flag and version number.

AlephCubed c6242840 1ac27cc3

+14 -14
+1 -1
Cargo.lock
··· 156 156 157 157 [[package]] 158 158 name = "bsru" 159 - version = "0.2.0-beta.1" 159 + version = "0.2.0-beta.2" 160 160 dependencies = [ 161 161 "bevy_color", 162 162 "bevy_reflect",
+1 -1
Cargo.toml
··· 1 1 [package] 2 2 name = "bsru" 3 - version = "0.2.0-beta.1" 3 + version = "0.2.0-beta.2" 4 4 edition = "2024" 5 5 description = "Beatsaber Rust Utilities: A Beatsaber V3 parsing library." 6 6 categories = ["game-development", "data-structures", "parser-implementations"]
+3 -3
src/difficulty/lightshow.rs
··· 25 25 } 26 26 27 27 impl DistributionType { 28 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 28 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 29 29 #[allow(deprecated)] 30 30 fn compute_beat_offset( 31 31 &self, ··· 55 55 ) 56 56 } 57 57 58 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 58 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 59 59 #[allow(deprecated)] 60 60 fn compute_value_offset( 61 61 &self, ··· 85 85 ) 86 86 } 87 87 88 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 88 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 89 89 #[allow(deprecated)] 90 90 #[inline(always)] 91 91 fn compute_offset(
+4 -4
src/difficulty/lightshow/filter.rs
··· 78 78 /// Will panic if the light ID is greater than or equal to the group size. 79 79 #[must_use] 80 80 #[inline] 81 - #[deprecated(note = "Experimental. Does not consider random or limit in calculations.")] 81 + #[deprecated(note = "Experimental. Does not consider random in calculations.")] 82 82 pub fn is_in_filter(&self, mut light_id: i32, mut group_size: i32) -> bool { 83 83 assert!(light_id < group_size); 84 84 ··· 122 122 /// If the [`FilterType`] is `Unknown` then the result will be the same as `group_size`. 123 123 #[must_use] 124 124 #[inline] 125 - #[deprecated(note = "Experimental. Does not consider random or limit in calculations.")] 125 + #[deprecated(note = "Experimental. Does not consider random in calculations.")] 126 126 pub(crate) fn count_filtered_without_limit(&self, mut group_size: i32) -> i32 { 127 127 if let Some(chunks) = self.chunks 128 128 && chunks > 0 ··· 149 149 /// If the [`FilterType`] is `Unknown` then the result will be the same as `group_size`. 150 150 #[must_use] 151 151 #[inline] 152 - #[deprecated(note = "Experimental. Does not consider random or limit in calculations.")] 152 + #[deprecated(note = "Experimental. Does not consider random in calculations.")] 153 153 #[allow(deprecated)] 154 154 pub fn count_filtered(&self, group_size: i32) -> i32 { 155 155 let filtered = self.count_filtered_without_limit(group_size); ··· 170 170 // Todo what is the behaviour when the light ID is not in the filter? 171 171 #[must_use] 172 172 #[inline] 173 - #[deprecated(note = "Experimental. Does not consider random or limit in calculations.")] 173 + #[deprecated(note = "Experimental. Does not consider random in calculations.")] 174 174 pub fn get_relative_index(&self, mut light_id: i32, mut group_size: i32) -> i32 { 175 175 assert!(light_id < group_size); 176 176
+2 -2
src/difficulty/lightshow/group.rs
··· 44 44 /// Returns the number of beats that the event will be offset for a given light ID. 45 45 /// # Panics 46 46 /// Will panic if the light ID is greater than or equal to the group size. 47 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 47 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 48 48 fn get_beat_offset(&self, light_id: i32, group_size: i32) -> f32; 49 49 50 50 /// Returns the value (i.e. brightness) that the event will be offset for a given light ID. 51 51 /// # Panics 52 52 /// Will panic if the light ID is greater than or equal to the group size. 53 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 53 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 54 54 fn get_value_offset(&self, light_id: i32, group_size: i32) -> f32; 55 55 } 56 56
+1 -1
src/difficulty/lightshow/group/color.rs
··· 93 93 /// Returns the brightness that the event will be offset for a given light ID. 94 94 /// # Panics 95 95 /// Will panic if the light ID is greater than or equal to the group size. 96 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 96 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 97 97 #[allow(deprecated)] 98 98 pub fn get_brightness_offset(&self, light_id: i32, group_size: i32) -> f32 { 99 99 self.bright_dist_type.compute_value_offset(
+1 -1
src/difficulty/lightshow/group/rotation.rs
··· 101 101 /// Returns the number of degrees that the event will be offset for a given light ID. 102 102 /// # Panics 103 103 /// Will panic if the light ID is greater than or equal to the group size. 104 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 104 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 105 105 #[allow(deprecated)] 106 106 pub fn get_rotation_offset(&self, light_id: i32, group_size: i32) -> f32 { 107 107 self.rotation_dist_type.compute_value_offset(
+1 -1
src/difficulty/lightshow/group/translation.rs
··· 107 107 /// Returns the number of units that the event will be offset for a given light ID. 108 108 /// # Panics 109 109 /// Will panic if the light ID is greater than or equal to the group size. 110 - #[deprecated(note = "Experimental. Does not consider random or limit in filter calculations.")] 110 + #[deprecated(note = "Experimental. Does not consider random in filter calculations.")] 111 111 #[allow(deprecated)] 112 112 pub fn get_translation_offset(&self, light_id: i32, group_size: i32) -> f32 { 113 113 self.translation_dist_type.compute_value_offset(