[][src]Struct lf2_parse::WPoint

pub struct WPoint {
    pub kind: WPointKind,
    pub x: i32,
    pub y: i32,
    pub weapon_act: FrameNumberNext,
    pub attacking: WeaponStrengthIndex,
    pub d_vx: i64,
    pub d_vy: i64,
}

Holds a weapon / weapon is held.

See https://lf-empire.de/lf2-empire/data-changing/frame-elements/179-wpoint-weapon-point

Fields

kind: WPointKind

Whether this describes holding a weapon, held as one, or dropping one.

x: i32

X coordinate.

y: i32

Y coordinate.

weapon_act: FrameNumberNext

Frame number that the held weapon uses.

Only used for WPoint kind: 1.

attacking: WeaponStrengthIndex

When holding a light weapon, which attack strength to use.

d_vx: i64

Acceleration on the X axis to throw the weapon.

Leave this at 0 if you don't want to throw the weapon.

d_vy: i64

Acceleration on the Y axis to throw the weapon.

Negative values go up.

Leave this at 0 if you don't want to throw the weapon.

Trait Implementations

impl Clone for WPoint[src]

impl Copy for WPoint[src]

impl Debug for WPoint[src]

impl Default for WPoint[src]

impl Eq for WPoint[src]

impl PartialEq<WPoint> for WPoint[src]

impl StructuralEq for WPoint[src]

impl StructuralPartialEq for WPoint[src]

impl<'i> TryFrom<Pair<'i, Rule>> for WPoint[src]

type Error = Error<'i>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for WPoint

impl Send for WPoint

impl Sync for WPoint

impl Unpin for WPoint

impl UnwindSafe for WPoint

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.