pub struct CharacterState {Show 20 fields
pub user: User,
pub character: Character,
pub currencies: Vec<CurrencyUnit>,
pub inventory: Vec<Item>,
pub all_abilities: Vec<Ability>,
pub equipped_abilities: EquippedAbilities,
pub all_pets: Vec<Pet>,
pub equipped_pets: EquippedPets,
pub suzerain: Option<Suzerain>,
pub vassals: Vec<Vassal>,
pub vassal_tasks: Vec<VassalTask>,
pub player_attributes: EntityAttributes,
pub bundle_step_generic: Vec<BundleStepGeneric>,
pub character_settings: CharacterSettings,
pub arena_stars: ArenaStars,
pub character_skins: CharacterSkins,
pub talent_levels: TalentLevelsMap,
pub statue_state: StatueState,
pub ad_usage: AdUsageMap,
pub active_buffs: Vec<ActiveBuff>,
}Fields§
§user: User§character: Character§currencies: Vec<CurrencyUnit>§inventory: Vec<Item>§all_abilities: Vec<Ability>§equipped_abilities: EquippedAbilities§all_pets: Vec<Pet>§equipped_pets: EquippedPets§suzerain: Option<Suzerain>§vassals: Vec<Vassal>§vassal_tasks: Vec<VassalTask>§player_attributes: EntityAttributes§bundle_step_generic: Vec<BundleStepGeneric>§character_settings: CharacterSettings§arena_stars: ArenaStars§character_skins: CharacterSkins§talent_levels: TalentLevelsMap§statue_state: StatueState§ad_usage: AdUsageMap§active_buffs: Vec<ActiveBuff>Implementations§
Source§impl CharacterState
impl CharacterState
pub fn get_vassal(&self, vassal_id: Uuid) -> Result<Vassal>
pub fn has_vassal(&self, vassal_id: Uuid) -> bool
pub fn get_currency(&self, currency_id: CurrencyId) -> i64
pub fn get_arena_tickets(&self, currency_id: CurrencyId) -> i64
pub fn decrement_arena_tickets(&mut self, currency_id: CurrencyId) -> Result<()>
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 CustomType for CharacterState
impl CustomType for CharacterState
Source§fn build(builder: TypeBuilder<'_, Self>)
fn build(builder: TypeBuilder<'_, Self>)
Builds the custom type for use with the [
Engine]. 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
Source§impl JsonSchema for CharacterState
impl JsonSchema for CharacterState
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CharacterState
impl PartialEq for CharacterState
Source§impl Serialize for CharacterState
impl Serialize for CharacterState
Source§impl Tsify for CharacterState
impl Tsify for CharacterState
const DECL: &'static str = "export interface CharacterState {\n user: User;\n character: Character;\n currencies: CurrencyUnit[];\n inventory: Item[];\n all_abilities: Ability[];\n equipped_abilities: EquippedAbilities;\n all_pets: Pet[];\n equipped_pets: EquippedPets;\n suzerain: Suzerain | null;\n vassals: Vassal[];\n vassal_tasks: VassalTask[];\n player_attributes: EntityAttributes;\n bundle_step_generic: BundleStepGeneric[];\n character_settings: CharacterSettings;\n arena_stars: ArenaStars;\n character_skins: CharacterSkins;\n talent_levels: TalentLevelsMap;\n statue_state: StatueState;\n ad_usage: AdUsageMap;\n active_buffs: ActiveBuff[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl Eq for CharacterState
impl StructuralPartialEq for CharacterState
Auto Trait Implementations§
impl Freeze for CharacterState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more