pub struct SpriteRt {}Expand description
Per-sprite runtime data not present in the map record.
Fields§
§vx: f64Velocity in xy units / z units per 120Hz tick.
vy: f64§vz: f64§seq: i32Current SEQ animation id and frame (-1 when none).
seq_frame: i32§seq_time: i32§health: i32Health for dudes/things.
on_ground: bool§ai_state: i32§ai_timer: i32§target: i32§burn_time: i32§home_ang: i16Facing the dude was placed with (idle wandering turns back to it).
eye: i32Eye height above the feet (from the sprite’s size), for sight checks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpriteRt
impl<'de> Deserialize<'de> for SpriteRt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpriteRt
impl RefUnwindSafe for SpriteRt
impl Send for SpriteRt
impl Sync for SpriteRt
impl Unpin for SpriteRt
impl UnsafeUnpin for SpriteRt
impl UnwindSafe for SpriteRt
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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