Struct libosu::Beatmap[][src]

pub struct Beatmap {
    pub version: u32,
    pub audio_filename: String,
    pub audio_leadin: u32,
    pub preview_time: u32,
    pub countdown: bool,
    pub sample_set: SampleSet,
    pub stack_leniency: f64,
    pub mode: Mode,
    pub letterbox_in_breaks: bool,
    pub widescreen_storyboard: bool,
    pub difficulty: Difficulty,
    pub bookmarks: Vec<i32>,
    pub distance_spacing: f64,
    pub beat_divisor: u8,
    pub grid_size: u8,
    pub timeline_zoom: f64,
    pub title: String,
    pub title_unicode: String,
    pub artist: String,
    pub artist_unicode: String,
    pub creator: String,
    pub difficulty_name: String,
    pub source: String,
    pub tags: Vec<String>,
    pub beatmap_id: i32,
    pub beatmap_set_id: i32,
    pub colors: Vec<Color>,
    pub hit_objects: BTreeSet<HitObject>,
    pub timing_points: Vec<TimingPoint>,
}

Represents a single beatmap.

Fields

The osu! file format being used

The name of the audio file to use, relative to the beatmap file.

The amount of time (in milliseconds) added before the audio file begins playing. Useful for audio files that begin immediately.

When (in milliseconds) the audio file should begin playing when selected in the song selection menu.

Whether or not to show the countdown

The default sample set for hit objects which don't have a custom override.

Leniency for stacked objects.

The game mode (standard, taiko, catch the beat, mania).

Whether or not to show black borders during breaks.

TODO: unknown field

An instance of the difficulty settings.

Bookmarks in the editor

The last setting used for distance spacing.

The last setting used for beat divisor

The last setting used for grid size

The last setting used for timeline zoom

The title of the song (ASCII only).

The title of the song (UTF-8).

The artist of the song (ASCII only).

The artist of the song (UTF-8).

The creator of the mapset.

The name of the difficulty.

Optional source.

Optional tags.

The beatmap ID on Bancho.

The beatmap set ID on Bancho.

Overridden combo colors.

The set of hit objects.

The set of timing points.

Methods

impl Beatmap
[src]

Returns the timing point associated with the timing section to which the given time belongs.`

Returns the hitobject located at the given time.

Set a hitsound at the given time.

Important traits for Vec<u8>

Get a list of all hit objects.

Returns a list of this beatmap's hitsounds.

This will also return hitsounds that occur on parts of objects, for example on slider bodies or slider ends. If a hitsound occurs on a spinner, the only "sound" that's counted is the moment that the spinner ends.

impl Beatmap
[src]

Creates a Beatmap from the *.osz format

Serializes this Beatmap into the *.osz format.

Trait Implementations

impl Debug for Beatmap
[src]

Formats the value using the given formatter. Read more

impl Default for Beatmap
[src]

Returns the "default value" for a type. Read more

impl Serialize for Beatmap
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Beatmap

impl Sync for Beatmap