[][src]Struct lf2_parse::Bdy

pub struct Bdy {
    pub kind: BdyKind,
    pub x: i32,
    pub y: i32,
    pub w: u32,
    pub h: u32,
    pub z_width: u32,
}

Hittable body of the object.

Fields

kind: BdyKind

Only used in criminal (type 5) objects.

If you use kind: 1050 (1000 + Frame number) and the bdy is hit by some itrs, the object switches to frame 50.

x: i32

X coordinate.

y: i32

Y coordinate.

w: u32

Width.

h: u32

Height.

z_width: u32

Z Width extends in both directions + 1 center pixel.

zwidth: 10 means 10 pixels up, 10 pixels down, and one pixel for center of the shadow for 21 pixels total.

Implementations

impl Bdy[src]

pub const Z_WIDTH_DEFAULT: u32[src]

Default Z_WIDTH for Bdy volumes.

Trait Implementations

impl Clone for Bdy[src]

impl Copy for Bdy[src]

impl Debug for Bdy[src]

impl Default for Bdy[src]

impl Eq for Bdy[src]

impl PartialEq<Bdy> for Bdy[src]

impl StructuralEq for Bdy[src]

impl StructuralPartialEq for Bdy[src]

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

type Error = Error<'i>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Bdy

impl Send for Bdy

impl Sync for Bdy

impl Unpin for Bdy

impl UnwindSafe for Bdy

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.