Struct libosu::HitObject[][src]

pub struct HitObject {
    pub pos: Point<i32>,
    pub start_time: TimeLocation,
    pub kind: HitObjectKind,
    pub new_combo: bool,
    pub timing_point: Option<TimingPoint>,
    pub skip_color: i32,
    pub hitsound: Hitsound,
}

Represents a single hit object.

Fields

The position on the map at which this hit object is located (head for sliders).

When this hit object occurs during the map.

The kind of HitObject this represents (circle, slider, spinner).

Whether or not this object begins a new combo.

Reference to the timing point under which this HitObject belongs.

The number of combo colors to skip

The hitsound attached to this hit object.

Methods

impl HitObject
[src]

Replaces the hitsound on this hitobject.

impl HitObject
[src]

Creates a HitObject from the *.osz format

Serializes this HitObject into the *.osz format.

Trait Implementations

impl Clone for HitObject
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HitObject
[src]

Formats the value using the given formatter. Read more

impl Serialize for HitObject
[src]

Serialize this value into the given Serde serializer. Read more

impl Ord for HitObject
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for HitObject
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for HitObject
[src]

impl PartialEq for HitObject
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for HitObject

impl Sync for HitObject