[][src]Struct libosu::OsuDBBeatmap

pub struct OsuDBBeatmap {
    pub size: Option<u32>,
    pub artist_name: String,
    pub artist_name_unicode: String,
    pub song_title: String,
    pub song_title_unicode: String,
    pub creator_name: String,
    pub difficulty: String,
    pub audio_file_name: String,
    pub hash: String,
    pub beatmap_file_name: String,
    pub ranked_status: RankedStatus,
    pub hitcircle_count: u16,
    pub slider_count: u16,
    pub spinner_count: u16,
    pub modification_date: u64,
    pub approach_rate: f32,
    pub circle_size: f32,
    pub hp_drain: f32,
    pub overall_difficulty: f32,
    pub slider_velocity: f64,
    pub std_star_rating: Vec<(Mods, f64)>,
    pub std_taiko_rating: Vec<(Mods, f64)>,
    pub std_ctb_rating: Vec<(Mods, f64)>,
    pub std_mania_rating: Vec<(Mods, f64)>,
    pub drain_time: u32,
    pub total_time: u32,
    pub preview_time: u32,
    pub timing_points: Vec<OsuDBBeatmapTimingPoint>,
    pub beatmap_id: u32,
    pub beatmap_set_id: u32,
    pub thread_id: u32,
    pub std_grade: Grade,
    pub taiko_grade: Grade,
    pub ctb_grade: Grade,
    pub mania_grade: Grade,
    pub beatmap_offset: u16,
    pub stack_leniency: f32,
    pub mode: Mode,
    pub source: String,
    pub tags: String,
    pub online_offset: u16,
    pub title_font: String,
    pub is_unplayed: bool,
    pub last_played: u64,
    pub is_osz2: bool,
    pub folder_name: String,
    pub last_checked: u64,
    pub ignore_beatmap_sounds: bool,
    pub ignore_beatmap_skin: bool,
    pub disable_storyboard: bool,
    pub disable_video: bool,
    pub visual_override: bool,
    pub unknown: Option<u16>,
    pub unknown_modification_date: u32,
    pub mania_scrollspeed: u8,
}

Beatmap located in osu!.db, they are different from normal beatmaps

Fields

size: Option<u32>

Size in bytes of the beatmap entry. Only present if version is less than 20191106.

artist_name: String

Artist's name. (ASCII)

artist_name_unicode: String

Artist's name. (UTF-8)

song_title: String

Song title. (ASCII)

song_title_unicode: String

Song title. (UTF-8)

creator_name: String

Creator name.

difficulty: String

Difficulty name.

audio_file_name: String

Name of the audio file.

hash: String

MD5 hash of the beatmap.

beatmap_file_name: String

Name of the .osu file.

ranked_status: RankedStatus

Ranked status.

hitcircle_count: u16

How many hitcircles in the beatmap.

slider_count: u16

How many sliders in the beatmap.

spinner_count: u16

How many spinners in the beatmap.

modification_date: u64

When the beatmap was last modified.

This is value is measured in windows ticks (https://docs.microsoft.com/en-us/dotnet/api/system.datetime.ticks?redirectedfrom=MSDN&view=net-5.0#System_DateTime_Ticks) It counts the number of ticks from 12:00:00 midnight, January 1, 0001 to the time this replay was created

approach_rate: f32

AR rating.

circle_size: f32

CS rating.

hp_drain: f32

HP rating.

overall_difficulty: f32

OD rating.

slider_velocity: f64

Slider velocity setting of the beatmap.

std_star_rating: Vec<(Mods, f64)>

A list of calculated star ratings for different mods for standard. Empty if version less than 20140609.

std_taiko_rating: Vec<(Mods, f64)>

A list of calculated star ratings for different mods for taiko. Empty if version less than 20140609.

std_ctb_rating: Vec<(Mods, f64)>

A list of calculated star ratings for different mods for ctb. Empty if version less than 20140609.

std_mania_rating: Vec<(Mods, f64)>

A list of calculated star ratings for different mods for mania. Empty if version less than 20140609.

drain_time: u32

The drain time in seconds.

total_time: u32

The total time in milliseconds.

preview_time: u32

The preview time point in milliseconds.

timing_points: Vec<OsuDBBeatmapTimingPoint>

Timing points for the beatmap.

beatmap_id: u32

Id of the beatmap.

beatmap_set_id: u32

Id of the beatmap set.

thread_id: u32

Id of the beatmap thread.

std_grade: Grade

The grade achieved in standard.

taiko_grade: Grade

The grade achieved in taiko.

ctb_grade: Grade

The grade achieved in ctb.

mania_grade: Grade

The grade achieved in mania.

beatmap_offset: u16

Local offset.

stack_leniency: f32

Stack leniency.

mode: Mode

Mode of the beatmap.

source: String

Source.

tags: String

Tags.

online_offset: u16

Online offset.

title_font: String

Title font.

is_unplayed: bool

Is the beatmap not played.

last_played: u64

Last time the map was played.

This is value is measured in windows ticks (https://docs.microsoft.com/en-us/dotnet/api/system.datetime.ticks?redirectedfrom=MSDN&view=net-5.0#System_DateTime_Ticks) It counts the number of ticks from 12:00:00 midnight, January 1, 0001 to the time this replay was created

is_osz2: bool

If the format is osz2.

folder_name: String

Folder name relative to the Songs folder.

last_checked: u64

Last time beatmap was checked to the online repository.

This is value is measured in windows ticks (https://docs.microsoft.com/en-us/dotnet/api/system.datetime.ticks?redirectedfrom=MSDN&view=net-5.0#System_DateTime_Ticks) It counts the number of ticks from 12:00:00 midnight, January 1, 0001 to the time this replay was created

ignore_beatmap_sounds: bool

Ignore beatmap sounds.

ignore_beatmap_skin: bool

Ignore beatmap skin.

disable_storyboard: bool

Disable storyboard.

disable_video: bool

Disable video.

visual_override: bool

Visual override.

unknown: Option<u16>

Unknown. Only present if version is less than 20140609.

unknown_modification_date: u32

Last modification time (?).

mania_scrollspeed: u8

Scroll speed for mania.

Trait Implementations

impl Clone for OsuDBBeatmap[src]

impl Debug for OsuDBBeatmap[src]

impl PartialEq<OsuDBBeatmap> for OsuDBBeatmap[src]

impl StructuralPartialEq for OsuDBBeatmap[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.