pub struct PicAnm {
pub frames: u8,
pub anim_type: u8,
pub xoffset: i8,
pub yoffset: i8,
pub speed: u8,
pub view: u8,
}Expand description
Animation / view attributes packed into the 32-bit picanm word.
Fields§
§frames: u8§anim_type: u80 none, 1 oscillate, 2 forward, 3 backward.
xoffset: i8§yoffset: i8§speed: u8§view: u8Blood sprite view: 0 single, 1 five-angle, 2 eight-angle, 3 bounce, 6 voxel, 7 spinning voxel.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PicAnm
impl RefUnwindSafe for PicAnm
impl Send for PicAnm
impl Sync for PicAnm
impl Unpin for PicAnm
impl UnsafeUnpin for PicAnm
impl UnwindSafe for PicAnm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more