OtherPlayer

Struct OtherPlayer 

Source
pub struct OtherPlayer {
Show 30 fields pub player_id: PlayerId, pub name: String, pub level: u16, pub description: String, pub guild: Option<String>, pub mount: Option<Mount>, pub portrait: Portrait, pub relationship: Relationship, pub wall_combat_lvl: u16, pub equipment: Equipment, pub experience: u64, pub next_level_xp: u64, pub honor: u32, pub rank: u32, pub fortress_rank: Option<u32>, pub portal_hp_bonus: u32, pub portal_dmg_bonus: u32, pub base_attributes: EnumMap<AttributeType, u32>, pub bonus_attributes: EnumMap<AttributeType, u32>, pub pet_attribute_bonus_perc: EnumMap<AttributeType, u32>, pub class: Class, pub race: Race, pub mirror: Mirror, pub scrapbook_count: Option<u32>, pub active_potions: [Option<Potion>; 3], pub armor: u64, pub min_damage_base: u32, pub max_damage_base: u32, pub soldier_advice: Option<u16>, pub fortress: Option<OtherFortress>,
}
Expand description

All information about another player, that was queried via the ViewPlayer command

Fields§

§player_id: PlayerId

The id of this player. This is mainly just useful to lookup this player in Lookup, if you do not know the name

§name: String

The name of the player

§level: u16

The level of the player

§description: String

The description this player has set for themselves

§guild: Option<String>

If the player is in a guild, this will contain the name

§mount: Option<Mount>

The mount the player currently ahs rented

§portrait: Portrait

Information about the players visual apperarence

§relationship: Relationship

The relation the own character has set towards this player

§wall_combat_lvl: u16

The level their fortress wall would have in combat

§equipment: Equipment

The equipment this player is currently wearing

§experience: u64§next_level_xp: u64§honor: u32§rank: u32§fortress_rank: Option<u32>§portal_hp_bonus: u32

The hp bonus in percent this player has from the personal demon portal

§portal_dmg_bonus: u32

The damage bonus in percent this player has from the guild demon portal

§base_attributes: EnumMap<AttributeType, u32>§bonus_attributes: EnumMap<AttributeType, u32>§pet_attribute_bonus_perc: EnumMap<AttributeType, u32>

This should be the percentage bonus to skills from pets

§class: Class§race: Race§mirror: Mirror§scrapbook_count: Option<u32>

None if they do not have a scrapbook

§active_potions: [Option<Potion>; 3]§armor: u64§min_damage_base: u32§max_damage_base: u32§soldier_advice: Option<u16>§fortress: Option<OtherFortress>

Trait Implementations§

Source§

impl Clone for OtherPlayer

Source§

fn clone(&self) -> OtherPlayer

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for OtherPlayer

Source§

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

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

impl Default for OtherPlayer

Source§

fn default() -> OtherPlayer

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

impl<'de> Deserialize<'de> for OtherPlayer

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 Serialize for OtherPlayer

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

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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