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,
}
Expand description
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 Copy for WPoint
impl Eq for WPoint
impl StructuralPartialEq for WPoint
Auto Trait Implementations§
impl Freeze for WPoint
impl RefUnwindSafe for WPoint
impl Send for WPoint
impl Sync for WPoint
impl Unpin for WPoint
impl UnwindSafe for WPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more