pub enum FighterTyp {
Player,
Monster(u16),
Companion(CompanionClass),
FortressPillager,
FortressWall,
UnderworldMinion,
Pet,
}Expand description
The type of the participant in a fight
Variants§
Player
Not just the own player, but any player on the server
Monster(u16)
A generic monster, or dungeon boss with its monster_id
Companion(CompanionClass)
One of the players companions
FortressPillager
A pillager in a fortress attack
FortressWall
The wall in a fortress attack
UnderworldMinion
A minion in an underworld lure battle
Pet
A pet
Trait Implementations§
Source§impl Clone for FighterTyp
impl Clone for FighterTyp
Source§fn clone(&self) -> FighterTyp
fn clone(&self) -> FighterTyp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FighterTyp
impl Debug for FighterTyp
Source§impl Default for FighterTyp
impl Default for FighterTyp
Source§fn default() -> FighterTyp
fn default() -> FighterTyp
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FighterTyp
impl<'de> Deserialize<'de> for FighterTyp
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FighterTyp
impl Hash for FighterTyp
Source§impl PartialEq for FighterTyp
impl PartialEq for FighterTyp
Source§impl Serialize for FighterTyp
impl Serialize for FighterTyp
impl Copy for FighterTyp
impl Eq for FighterTyp
impl StructuralPartialEq for FighterTyp
Auto Trait Implementations§
impl Freeze for FighterTyp
impl RefUnwindSafe for FighterTyp
impl Send for FighterTyp
impl Sync for FighterTyp
impl Unpin for FighterTyp
impl UnwindSafe for FighterTyp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.