Struct sf_api::gamestate::character::CharacterState
source · pub struct CharacterState {Show 31 fields
pub player_id: PlayerId,
pub name: String,
pub level: u16,
pub silver: u64,
pub mushrooms: u32,
pub class: Class,
pub druid_mask: Option<DruidMask>,
pub bard_instrument: Option<BardInstrument>,
pub race: Race,
pub portrait: Portrait,
pub description: String,
pub experience: u64,
pub next_level_xp: u64,
pub honor: u32,
pub rank: u32,
pub inventory: Inventory,
pub equipment: Equipment,
pub manequin: Option<Equipment>,
pub active_potions: [Option<ItemType>; 3],
pub armor: u64,
pub min_damage: u32,
pub max_damage: u32,
pub attribute_basis: Attributes,
pub attribute_additions: Attributes,
pub attribute_times_bought: Attributes,
pub mount: Option<Mount>,
pub mount_end: Option<DateTime<Local>>,
pub mount_dragon_refund: u64,
pub lucky_coins: u32,
pub wheel_spins_today: u8,
pub wheel_next_free_spin: Option<DateTime<Local>>,
}
Fields§
§player_id: PlayerId
§name: String
§level: u16
§silver: u64
§mushrooms: u32
§class: Class
§druid_mask: Option<DruidMask>
§bard_instrument: Option<BardInstrument>
§race: Race
§portrait: Portrait
§description: String
§experience: u64
The amount of experience already earned in the current level
next_level_xp: u64
The amount of experience required to level up
honor: u32
The amount of honor earned through the arena
rank: u32
The rank in the hall of fame
inventory: Inventory
§equipment: Equipment
Equiped items
manequin: Option<Equipment>
Equiped items
active_potions: [Option<ItemType>; 3]
§armor: u64
The total armor of our character. Basically all equiped armor combined
min_damage: u32
The min amount of damage the weapon claims it can do without any bonus
max_damage: u32
The max amount of damage the weapon claims it can do without any bonus
attribute_basis: Attributes
§attribute_additions: Attributes
§attribute_times_bought: Attributes
The amount of times an atribute has been bought already
mount: Option<Mount>
§mount_end: Option<DateTime<Local>>
§mount_dragon_refund: u64
The silver you get for buying a dragon
lucky_coins: u32
§wheel_spins_today: u8
§wheel_next_free_spin: Option<DateTime<Local>>
Trait Implementations§
source§impl Clone for CharacterState
impl Clone for CharacterState
source§fn clone(&self) -> CharacterState
fn clone(&self) -> CharacterState
Returns a copy 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 CharacterState
impl Debug for CharacterState
source§impl Default for CharacterState
impl Default for CharacterState
source§fn default() -> CharacterState
fn default() -> CharacterState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CharacterState
impl<'de> Deserialize<'de> for CharacterState
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
Auto Trait Implementations§
impl RefUnwindSafe for CharacterState
impl Send for CharacterState
impl Sync for CharacterState
impl Unpin for CharacterState
impl UnwindSafe for CharacterState
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