#[repr(C, packed(1))]pub struct AbilityInfo {
pub id: u32,
pub name: PaddedString<MAX_NAME_LENGTH>,
pub cooldown: f32,
pub cooldown_remaining: f32,
pub level: u32,
pub button_art: PaddedString<MAX_BUTTON_ART_LENGTH>,
pub is_hero_ability: u8,
pub damage_dealt: u32,
pub healing_done: u32,
}Expand description
State for a single hero ability slot.
Fields§
§id: u32Game-internal ability ID.
name: PaddedString<MAX_NAME_LENGTH>Display name.
cooldown: f32Maximum cooldown of the ability, in seconds.
cooldown_remaining: f32Cooldown remaining before the ability can be used again, in seconds.
level: u32Current learned level of the ability.
Path to the ability’s button icon.
is_hero_ability: u8Non-zero when the ability belongs to a hero.
damage_dealt: u32Total damage dealt by uses of this ability.
healing_done: u32Total healing done by uses of this ability.
Auto Trait Implementations§
impl Freeze for AbilityInfo
impl RefUnwindSafe for AbilityInfo
impl Send for AbilityInfo
impl Sync for AbilityInfo
impl Unpin for AbilityInfo
impl UnsafeUnpin for AbilityInfo
impl UnwindSafe for AbilityInfo
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