pub struct Bdy {
pub kind: BdyKind,
pub x: i32,
pub y: i32,
pub w: u32,
pub h: u32,
pub z_width: u32,
}
Expand description
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
itr
s, 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§
Trait Implementations§
impl Copy for Bdy
impl Eq for Bdy
impl StructuralPartialEq for Bdy
Auto Trait Implementations§
impl Freeze for Bdy
impl RefUnwindSafe for Bdy
impl Send for Bdy
impl Sync for Bdy
impl Unpin for Bdy
impl UnwindSafe for Bdy
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