[][src]Struct osuparse::DifficultySection

pub struct DifficultySection {
    pub hp_drain_rate: f32,
    pub circle_size: f32,
    pub overall_difficulty: f32,
    pub approach_rate: f32,
    pub slider_multiplier: f32,
    pub slider_tick_rate: f32,
}

Difficulty modifiers for the beatmap

Fields

hp_drain_rate: f32circle_size: f32

Defines the size of the hit objects in the osu!standard mode.

The radius in osu!pixels is defined by the formula 32 * (1 - 0.7 * (CircleSize - 5) / 5), alternatively written as 54.4 - 4.48 * CircleSize.

The value of CircleSize for ranked beatmaps must stand at from 2 to 7, inclusive.

In osu!mania mode, CircleSize is the number of columns.

overall_difficulty: f32

Is the harshness of the hit window and the difficulty of spinners.

approach_rate: f32

Defines when hit objects start to fade in relatively to when they should be hit.

slider_multiplier: f32

Specifies the multiplier of the slider velocity. The velocity at slider multiplier = 1 is 100 osu!pixels per beat. A slider multiplier of 2 would yield a velocity of 200 osu!pixels per beat. The default slider multiplier is 1.4 when the property is omitted.

slider_tick_rate: f32

The number of ticks per beat. The default value is 1 tick per beat.

Trait Implementations

impl Default for DifficultySection
[src]

fn default() -> Self
[src]

Create a DifficultySection where all fields are set to 5 except slider_multiplier and slider_tickrate, as is the case in the editor.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]