pub enum EntityState<'a> {
Character(&'a CharacterState),
Opponent(&'a OpponentState),
}Variants§
Character(&'a CharacterState)
Opponent(&'a OpponentState)
Implementations§
Source§impl<'a> EntityState<'a>
impl<'a> EntityState<'a>
pub fn id(&self) -> Uuid
pub fn level(&self) -> i64
pub fn current_chapter_level(&self) -> i64
pub fn inventory(&self) -> &Vec<Item>
pub fn class(&self) -> ClassId
pub fn equipped_abilities(&self) -> &EquippedAbilities
pub fn equipped_pets(&self) -> Option<&EquippedPets>
Sourcepub fn cores(&self) -> Option<&CoresState>
pub fn cores(&self) -> Option<&CoresState>
Twin-cores state of whoever this combatant is (OVT-2517). A human PvP
opponent carries a full CharacterState, so their cores are just as
available as the local hero’s; an arena filler bot has none.
Sourcepub fn talent_levels(&self) -> Option<&TalentLevelsMap>
pub fn talent_levels(&self) -> Option<&TalentLevelsMap>
Researched talent levels of whoever this combatant is. Same shape as
Self::cores: a human PvP opponent carries a full CharacterState, so
their talents are as available as the local hero’s; an arena filler bot
has no talent tree and returns None.
Sourcepub fn statue_state(&self) -> Option<&StatueState>
pub fn statue_state(&self) -> Option<&StatueState>
Statue state of whoever this combatant is. None for arena filler bots,
which have no statue.
Sourcepub fn character_classes(&self) -> Option<&[CharacterClass]>
pub fn character_classes(&self) -> Option<&[CharacterClass]>
Per-class progression rows of whoever this combatant is. None for arena
filler bots, which have no class levels (their class() still resolves —
only the levelling progress is absent).
Sourcepub fn stones(&self) -> Option<&StoneInventory>
pub fn stones(&self) -> Option<&StoneInventory>
Gear-stone inventory of whoever this combatant is. Same shape as
Self::cores: a human PvP opponent carries a full CharacterState,
so their socketed stones count like the local hero’s; an arena filler
bot has none.
Sourcepub fn ability_stones(&self) -> Option<&[OwnedAbilityStone]>
pub fn ability_stones(&self) -> Option<&[OwnedAbilityStone]>
Ability-stone collection of whoever this combatant is — the OWNED
stones, socketed or not, which is what Collection Power reads. None
for arena filler bots.
Sourcepub fn all_abilities(&self) -> Option<&[Ability]>
pub fn all_abilities(&self) -> Option<&[Ability]>
Every ability this combatant owns, equipped or not. Distinct from
Self::equipped_abilities, which is the loadout — Collection Power
pays for the collection, so it needs the whole roster. None for arena
filler bots, whose kit is authored rather than collected.
Sourcepub fn all_pets(&self) -> Option<&[Pet]>
pub fn all_pets(&self) -> Option<&[Pet]>
Every pet this combatant owns, slotted or not — the counterpart of
Self::equipped_pets for the same reason Self::all_abilities is
the counterpart of the loadout. None for arena filler bots.
Sourcepub fn artifacts(&self) -> Option<&ArtifactCollection>
pub fn artifacts(&self) -> Option<&ArtifactCollection>
Artifact collection of whoever this combatant is. None for arena
filler bots, which own no artifacts.
Sourcepub fn plinko_pin_bonuses(&self) -> Option<&PlinkoPinBonusesMap>
pub fn plinko_pin_bonuses(&self) -> Option<&PlinkoPinBonusesMap>
Banked Plinko pin bonuses of whoever this combatant is. None for
arena filler bots.
Trait Implementations§
Source§impl<'a> Clone for EntityState<'a>
impl<'a> Clone for EntityState<'a>
Source§fn clone(&self) -> EntityState<'a>
fn clone(&self) -> EntityState<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more