[−][src]Struct libosu::Difficulty
Difficulty settings defined by the map.
Fields
hp_drain_rate: f32
HP Drain Rate
The wiki doesn't have a solid definition of this field yet.
circle_size: f32
Circle Size
This is a value between 0 and 10 representing how big circles should appear on screen.
In osu!mania, this actually defines the number of columns (keys).
overall_difficulty: f32
Overall Difficulty
approach_rate: f32
Approach Rate
slider_multiplier: f64
Slider Multiplier
slider_tick_rate: u32
Slider tick rate
Implementations
impl Difficulty
[src]
pub fn circle_size_osupx(&self) -> f32
[src]
Calculates the size of a circle in OsuPixels, which is how big the circle appears on a 640x480 screen.
The formula for this can be found here and is equal to 54.4 - 4.48 * cs
.
pub fn approach_preempt(&self) -> u32
[src]
Calculates the duration of time (in milliseconds) before the hit object's point of impact at which the object should begin fading in.
The formula for this can be found here and is a piecewise function:
- AR < 5: preempt = 1200ms + 600ms * (5 - AR) / 5
- AR = 5: preempt = 1200ms
- AR > 5: preempt = 1200ms - 750ms * (AR - 5) / 5
pub fn approach_fade_time(&self) -> u32
[src]
Calculates the duration of time (in milliseconds) it takes the hitobject to fade in completely to 100% opacity.
The formula for this can be found here and is a piecewise function:
- AR < 5: fade_in = 800ms + 400ms * (5 - AR) / 5
- AR = 5: fade_in = 800ms
- AR > 5: fade_in = 800ms - 500ms * (AR - 5) / 5
Trait Implementations
impl Clone for Difficulty
[src]
pub fn clone(&self) -> Difficulty
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Difficulty
[src]
impl Default for Difficulty
[src]
pub fn default() -> Difficulty
[src]
impl PartialEq<Difficulty> for Difficulty
[src]
pub fn eq(&self, other: &Difficulty) -> bool
[src]
pub fn ne(&self, other: &Difficulty) -> bool
[src]
impl StructuralPartialEq for Difficulty
[src]
Auto Trait Implementations
impl RefUnwindSafe for Difficulty
[src]
impl Send for Difficulty
[src]
impl Sync for Difficulty
[src]
impl Unpin for Difficulty
[src]
impl UnwindSafe for Difficulty
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,