[−][src]Struct lf2_parse::WPoint
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]
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]
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,