pub struct Agent {
pub addr: u64,
pub prof: u32,
pub is_elite: u32,
pub toughness: i16,
pub concentration: i16,
pub healing: i16,
pub condition: i16,
pub name: [u8; 64],
}
Expand description
An agent.
Fields
addr: u64
Agent id.
prof: u32
Agent profession id.
is_elite: u32
Agent elite specialization.
toughness: i16
Toughnes.
concentration: i16
Concentration.
healing: i16
Healing.
condition: i16
Condition
name: [u8; 64]
Name/Account combo field.
Implementations
sourceimpl Agent
impl Agent
sourcepub fn is_gadget(&self) -> bool
pub fn is_gadget(&self) -> bool
Checks whether this agent is a gadget.
Gadgets are entities spawned by some skills, like the “Binding Roots” spawned by Entangle.
sourcepub fn is_character(&self) -> bool
pub fn is_character(&self) -> bool
Checks whether this agent is a character.
Characters are entities like clones, pets, minions, spirits, but also minis.
Trait Implementations
sourceimpl TryFrom<&'_ Agent> for AgentKind
impl TryFrom<&'_ Agent> for AgentKind
sourceimpl TryFrom<Agent> for AgentKind
impl TryFrom<Agent> for AgentKind
sourceimpl TryFrom<Agent> for Agent
impl TryFrom<Agent> for Agent
impl Eq for Agent
impl StructuralEq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more