Skip to main content

CombatHud

Struct CombatHud 

Source
pub struct CombatHud {
Show 33 fields pub in_combat: bool, pub auto_attack: bool, pub has_los: bool, pub attack_cd_ticks: u64, pub ability_id: String, pub target_entity_id: Option<EntityId>, pub target_label: Option<String>, pub max_target_slots: u8, pub slots: Vec<CombatSlotHud>, pub rotation_presets: Vec<RotationPreset>, pub gcd_ticks: u64, pub mainhand_template_id: Option<String>, pub mainhand_label: Option<String>, pub offhand_template_id: Option<String>, pub offhand_label: Option<String>, pub mainhand_hand_slots: u8, pub worn: Vec<(BodySlot, ItemStack)>, pub defense: Option<DefenseHud>, pub carry_mass: f32, pub carry_mass_max: f32, pub encumbrance: EncumbranceState, pub keychain: Vec<ItemStack>, pub target: Option<CombatTargetHud>, pub cast: Option<CastProgressHud>, pub ability_cooldowns: Vec<AbilityCooldownHud>, pub blocking_active: bool, pub progression_xp: Option<ProgressionXp>, pub progression_baseline: u16, pub progression_xp_base: f64, pub progression_xp_growth: f64, pub attributes: Option<PrimaryAttributes>, pub skills: Option<PlayerSkills>, pub statuses: Vec<StatusEffectHud>,
}
Expand description

Observer combat HUD (local player only).

Fields§

§in_combat: bool§auto_attack: bool

T1 auto rotation (legacy field mirrors slot 1).

§has_los: bool§attack_cd_ticks: u64§ability_id: String§target_entity_id: Option<EntityId>§target_label: Option<String>§max_target_slots: u8§slots: Vec<CombatSlotHud>§rotation_presets: Vec<RotationPreset>§gcd_ticks: u64§mainhand_template_id: Option<String>§mainhand_label: Option<String>§offhand_template_id: Option<String>§offhand_label: Option<String>§mainhand_hand_slots: u8

Mainhand occupies this many hand sockets (1 or 2).

§worn: Vec<(BodySlot, ItemStack)>

Equipped body-slot items (backpack, belt, armor, jewelry).

§defense: Option<DefenseHud>

Live mitigation / resist summary for the Equip paperdoll.

§carry_mass: f32§carry_mass_max: f32§encumbrance: EncumbranceState§keychain: Vec<ItemStack>

Keys on the virtual keychain (stowed, zero carry mass).

§target: Option<CombatTargetHud>§cast: Option<CastProgressHud>§ability_cooldowns: Vec<AbilityCooldownHud>§blocking_active: bool§progression_xp: Option<ProgressionXp>

Live XP pools for the local player (updated every tick with combat HUD).

§progression_baseline: u16§progression_xp_base: f64§progression_xp_growth: f64§attributes: Option<PrimaryAttributes>§skills: Option<PlayerSkills>§statuses: Vec<StatusEffectHud>

Active status effects on the local player.

Trait Implementations§

Source§

impl Clone for CombatHud

Source§

fn clone(&self) -> CombatHud

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CombatHud

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CombatHud

Source§

fn default() -> CombatHud

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CombatHud

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CombatHud

Source§

fn eq(&self, other: &CombatHud) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CombatHud

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CombatHud

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.