[−][src]Struct osu_db::replay::Action
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
andz
.
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,