pub struct Agent {
pub id: u64,
pub name: Vec<String>,
pub profession: u32,
pub is_elite: u32,
pub hitbox_width: u16,
pub hitbox_height: u16,
pub toughness: u16,
pub concentration: u16,
pub healing: u16,
pub condition: u16,
}Expand description
An EVTC agent.
Could be a player, enemy, minion or other.
If is_elite == 0xffffffff and upper half of prof == 0xffff, the agent is a gadget with a pseudo id as lower half of prof (volatile id).
If is_elite == 0xffffffff and upper half of prof != 0xffff, the agent is an NPC with species id as lower half of prof (reliable id).
If is_elite != 0xffffffff, the agent is a player with Profession as prof and Elite Specialization as is_elite.
Gadgets do not have true ids and are generated through a combination of gadget parameters. They will collide with NPCs and should be treated separately.
Fields§
§id: u64Unique id.
name: Vec<String>Name information for the agent.
For players this is a combo string containing the character name, account name and subgroup.
profession: u32Profession for player agents
is_elite: u32Elite specialization for player agents.
hitbox_width: u16Hitbox width of the agent.
hitbox_height: u16Hitbox height of the agent.
toughness: u16Normalized Toughness attribute of the agent.
concentration: u16Normalized Concentration attribute of the agent.
healing: u16Normalized Healing attribute of the agent.
condition: u16Normalized Condition Damage attribute of the agent.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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>,
Source§impl Ord for Agent
impl Ord for Agent
Source§impl Parse for Agent
impl Parse for Agent
Source§type Error = ParseError
type Error = ParseError
Source§fn parse(input: &mut impl Read) -> Result<Self, Self::Error>
fn parse(input: &mut impl Read) -> Result<Self, Self::Error>
Source§fn parse_multi<T>(input: &mut impl Read, count: usize) -> Result<T, Self::Error>where
T: FromIterator<Self>,
fn parse_multi<T>(input: &mut impl Read, count: usize) -> Result<T, Self::Error>where
T: FromIterator<Self>,
Vec.Source§impl PartialOrd for Agent
impl PartialOrd for Agent
impl Eq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.