pub struct CharacterSchema {Show 79 fields
pub name: String,
pub account: String,
pub skin: CharacterSkin,
pub level: i32,
pub xp: i32,
pub max_xp: i32,
pub gold: i32,
pub speed: i32,
pub mining_level: i32,
pub mining_xp: i32,
pub mining_max_xp: i32,
pub woodcutting_level: i32,
pub woodcutting_xp: i32,
pub woodcutting_max_xp: i32,
pub fishing_level: i32,
pub fishing_xp: i32,
pub fishing_max_xp: i32,
pub weaponcrafting_level: i32,
pub weaponcrafting_xp: i32,
pub weaponcrafting_max_xp: i32,
pub gearcrafting_level: i32,
pub gearcrafting_xp: i32,
pub gearcrafting_max_xp: i32,
pub jewelrycrafting_level: i32,
pub jewelrycrafting_xp: i32,
pub jewelrycrafting_max_xp: i32,
pub cooking_level: i32,
pub cooking_xp: i32,
pub cooking_max_xp: i32,
pub alchemy_level: i32,
pub alchemy_xp: i32,
pub alchemy_max_xp: i32,
pub hp: i32,
pub max_hp: i32,
pub haste: i32,
pub critical_strike: i32,
pub wisdom: i32,
pub prospecting: i32,
pub attack_fire: i32,
pub attack_earth: i32,
pub attack_water: i32,
pub attack_air: i32,
pub dmg: i32,
pub dmg_fire: i32,
pub dmg_earth: i32,
pub dmg_water: i32,
pub dmg_air: i32,
pub res_fire: i32,
pub res_earth: i32,
pub res_water: i32,
pub res_air: i32,
pub x: i32,
pub y: i32,
pub cooldown: i32,
pub cooldown_expiration: Option<String>,
pub weapon_slot: String,
pub rune_slot: String,
pub shield_slot: String,
pub helmet_slot: String,
pub body_armor_slot: String,
pub leg_armor_slot: String,
pub boots_slot: String,
pub ring1_slot: String,
pub ring2_slot: String,
pub amulet_slot: String,
pub artifact1_slot: String,
pub artifact2_slot: String,
pub artifact3_slot: String,
pub utility1_slot: String,
pub utility1_slot_quantity: u32,
pub utility2_slot: String,
pub utility2_slot_quantity: u32,
pub bag_slot: String,
pub task: String,
pub task_type: String,
pub task_progress: i32,
pub task_total: i32,
pub inventory_max_items: i32,
pub inventory: Option<Vec<InventorySlot>>,
}Fields§
§name: StringName of the character.
account: StringAccount name.
skin: CharacterSkinCharacter skin code.
level: i32Combat level.
xp: i32The current xp level of the combat level.
max_xp: i32XP required to level up the character.
gold: i32The numbers of gold on this character.
speed: i32*Not available, on the roadmap. Character movement speed.
mining_level: i32Mining level.
mining_xp: i32The current xp level of the Mining skill.
mining_max_xp: i32Mining XP required to level up the skill.
woodcutting_level: i32Woodcutting level.
woodcutting_xp: i32The current xp level of the Woodcutting skill.
woodcutting_max_xp: i32Woodcutting XP required to level up the skill.
fishing_level: i32Fishing level.
fishing_xp: i32The current xp level of the Fishing skill.
fishing_max_xp: i32Fishing XP required to level up the skill.
weaponcrafting_level: i32Weaponcrafting level.
weaponcrafting_xp: i32The current xp level of the Weaponcrafting skill.
weaponcrafting_max_xp: i32Weaponcrafting XP required to level up the skill.
gearcrafting_level: i32Gearcrafting level.
gearcrafting_xp: i32The current xp level of the Gearcrafting skill.
gearcrafting_max_xp: i32Gearcrafting XP required to level up the skill.
jewelrycrafting_level: i32Jewelrycrafting level.
jewelrycrafting_xp: i32The current xp level of the Jewelrycrafting skill.
jewelrycrafting_max_xp: i32Jewelrycrafting XP required to level up the skill.
cooking_level: i32The current xp level of the Cooking skill.
cooking_xp: i32Cooking XP.
cooking_max_xp: i32Cooking XP required to level up the skill.
alchemy_level: i32Alchemy level.
alchemy_xp: i32Alchemy XP.
alchemy_max_xp: i32Alchemy XP required to level up the skill.
hp: i32Character actual HP.
max_hp: i32Character max HP.
haste: i32*Increase speed attack (reduce fight cooldown)
critical_strike: i32% Critical strike. Critical strikes adds 50% extra damage to an attack (1.5x).
wisdom: i32Wisdom increases the amount of XP gained from fights and skills (1% extra per 10 wisdom).
prospecting: i32Prospecting increases the chances of getting drops from fights and skills (1% extra per 10 PP).
attack_fire: i32Fire attack.
attack_earth: i32Earth attack.
attack_water: i32Water attack.
attack_air: i32Air attack.
dmg: i32% Damage. Damage increases your attack in all elements.
dmg_fire: i32% Fire damage. Damage increases your fire attack.
dmg_earth: i32% Earth damage. Damage increases your earth attack.
dmg_water: i32% Water damage. Damage increases your water attack.
dmg_air: i32% Air damage. Damage increases your air attack.
res_fire: i32% Fire resistance. Reduces fire attack.
res_earth: i32% Earth resistance. Reduces earth attack.
res_water: i32% Water resistance. Reduces water attack.
res_air: i32% Air resistance. Reduces air attack.
x: i32Character x coordinate.
y: i32Character y coordinate.
cooldown: i32Cooldown in seconds.
cooldown_expiration: Option<String>Datetime Cooldown expiration.
weapon_slot: StringWeapon slot.
rune_slot: StringRune slot.
shield_slot: StringShield slot.
helmet_slot: StringHelmet slot.
body_armor_slot: StringBody armor slot.
leg_armor_slot: StringLeg armor slot.
boots_slot: StringBoots slot.
ring1_slot: StringRing 1 slot.
ring2_slot: StringRing 2 slot.
amulet_slot: StringAmulet slot.
artifact1_slot: StringArtifact 1 slot.
artifact2_slot: StringArtifact 2 slot.
artifact3_slot: StringArtifact 3 slot.
utility1_slot: StringUtility 1 slot.
utility1_slot_quantity: u32Utility 1 quantity.
utility2_slot: StringUtility 2 slot.
utility2_slot_quantity: u32Utility 2 quantity.
bag_slot: StringBag slot.
task: StringTask in progress.
task_type: StringTask type.
task_progress: i32Task progression.
task_total: i32Task total objective.
inventory_max_items: i32Inventory max items.
inventory: Option<Vec<InventorySlot>>List of inventory slots.
Implementations§
Source§impl CharacterSchema
impl CharacterSchema
pub fn new( name: String, account: String, skin: CharacterSkin, level: i32, xp: i32, max_xp: i32, gold: i32, speed: i32, mining_level: i32, mining_xp: i32, mining_max_xp: i32, woodcutting_level: i32, woodcutting_xp: i32, woodcutting_max_xp: i32, fishing_level: i32, fishing_xp: i32, fishing_max_xp: i32, weaponcrafting_level: i32, weaponcrafting_xp: i32, weaponcrafting_max_xp: i32, gearcrafting_level: i32, gearcrafting_xp: i32, gearcrafting_max_xp: i32, jewelrycrafting_level: i32, jewelrycrafting_xp: i32, jewelrycrafting_max_xp: i32, cooking_level: i32, cooking_xp: i32, cooking_max_xp: i32, alchemy_level: i32, alchemy_xp: i32, alchemy_max_xp: i32, hp: i32, max_hp: i32, haste: i32, critical_strike: i32, wisdom: i32, prospecting: i32, attack_fire: i32, attack_earth: i32, attack_water: i32, attack_air: i32, dmg: i32, dmg_fire: i32, dmg_earth: i32, dmg_water: i32, dmg_air: i32, res_fire: i32, res_earth: i32, res_water: i32, res_air: i32, x: i32, y: i32, cooldown: i32, weapon_slot: String, rune_slot: String, shield_slot: String, helmet_slot: String, body_armor_slot: String, leg_armor_slot: String, boots_slot: String, ring1_slot: String, ring2_slot: String, amulet_slot: String, artifact1_slot: String, artifact2_slot: String, artifact3_slot: String, utility1_slot: String, utility1_slot_quantity: u32, utility2_slot: String, utility2_slot_quantity: u32, bag_slot: String, task: String, task_type: String, task_progress: i32, task_total: i32, inventory_max_items: i32, ) -> CharacterSchema
Trait Implementations§
Source§impl Clone for CharacterSchema
impl Clone for CharacterSchema
Source§fn clone(&self) -> CharacterSchema
fn clone(&self) -> CharacterSchema
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more