#[repr(C)]pub struct UnitSlot {
pub health: f64,
pub max_health: f64,
pub is_boss: i32,
_padding_after_is_boss: i32,
pub time_to_die: f64,
pub is_casting: i32,
_padding_after_is_casting: i32,
pub cast_end: f64,
pub is_moving: i32,
pub is_add: i32,
pub distance: f64,
}Fields§
§health: f64§max_health: f64§is_boss: i32§_padding_after_is_boss: i32§time_to_die: f64§is_casting: i32§_padding_after_is_casting: i32§cast_end: f64§is_moving: i32§is_add: i32§distance: f64Implementations§
Source§impl UnitSlot
impl UnitSlot
pub fn health_pct(&self) -> f64
pub fn health_deficit(&self) -> f64
Source§impl UnitSlot
impl UnitSlot
pub const SIZE: usize
pub const OFF_HEALTH: usize
pub const OFF_MAX_HEALTH: usize
pub const OFF_IS_BOSS: usize
const OFF__PADDING_AFTER_IS_BOSS: usize
pub const OFF_TIME_TO_DIE: usize
pub const OFF_IS_CASTING: usize
const OFF__PADDING_AFTER_IS_CASTING: usize
pub const OFF_CAST_END: usize
pub const OFF_IS_MOVING: usize
pub const OFF_IS_ADD: usize
pub const OFF_DISTANCE: usize
Sourcepub fn dump_fields(&self, out: &mut String)
pub fn dump_fields(&self, out: &mut String)
Append human-readable field name/value pairs to the output string.
Trait Implementations§
impl Copy for UnitSlot
impl Pod for UnitSlot
Auto Trait Implementations§
impl Freeze for UnitSlot
impl RefUnwindSafe for UnitSlot
impl Send for UnitSlot
impl Sync for UnitSlot
impl Unpin for UnitSlot
impl UnsafeUnpin for UnitSlot
impl UnwindSafe for UnitSlot
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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