[][src]Struct osu_db::replay::Action

pub struct Action {
    pub delta: i64,
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

Represents a single action within a replay. The meaning of an action depends on the gamemode of the replay, but all actions contain:

  • An integral amount of milliseconds elapsed since the last action, delta.
  • 3 pieces of floating-point payload: x, y and z.

Fields

delta: i64

The amount of milliseconds since the last action.

x: f32

First bit of payload in the action.

In standard: Represents the x coordinate of the mouse, from 0 to 512.

In mania: Represents the bitwise combination of buttons pressed.

y: f32

Second bit of payload in the action.

In standard: Represents the y coordinate of the mouse, from 0 to 384.

z: f32

Third bit of payload in the action.

In standard: Represents the bitwise combination of buttons pressed.

Implementations

impl Action[src]

pub fn std_buttons(&self) -> StandardButtonSet[src]

Get the pressed osu!standard buttons.

pub fn mania_buttons(&self) -> ManiaButtonSet[src]

Get the pressed osu!mania buttons.

Trait Implementations

impl Clone for Action[src]

impl Debug for Action[src]

impl PartialEq<Action> for Action[src]

impl StructuralPartialEq for Action[src]

Auto Trait Implementations

impl RefUnwindSafe for Action

impl Send for Action

impl Sync for Action

impl Unpin for Action

impl UnwindSafe for Action

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.