pub struct Pets {
pub total_collected: u16,
pub rank: u32,
pub honor: u32,
pub max_pet_level: u16,
pub opponent: PetOpponent,
pub habitats: EnumMap<HabitatType, Habitat>,
pub next_free_exploration: Option<DateTime<Local>>,
pub atr_bonus: EnumMap<AttributeType, u32>,
}Fields§
§total_collected: u16The total amount of pets collected in all habitats
rank: u32The rank this pet collection achieved in the hall of fame
honor: u32The honor this pet collection has gained
max_pet_level: u16§opponent: PetOpponentInformation about the pvp opponent you can attack with your pets
habitats: EnumMap<HabitatType, Habitat>Information about all the different habitats
next_free_exploration: Option<DateTime<Local>>The next time the exploration will be possible without spending a mushroom
atr_bonus: EnumMap<AttributeType, u32>The bonus the player receives from pets
Implementations§
Source§impl Pets
impl Pets
Sourcepub fn get_exploration_enemy(&self, habitat: HabitatType) -> Option<Monster>
pub fn get_exploration_enemy(&self, habitat: HabitatType) -> Option<Monster>
Get the current monster we would be fighting, when
Sourcepub fn pet_to_fighter(&self, pet: &Pet, gladiator: u32) -> Fighter
pub fn pet_to_fighter(&self, pet: &Pet, gladiator: u32) -> Fighter
Converts the given player pet into a fighter, usable in the simulation. The given pet does not need to have stats populated to work, since all stats will be dynamically calculated
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pets
impl<'de> Deserialize<'de> for Pets
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 Freeze for Pets
impl RefUnwindSafe for Pets
impl Send for Pets
impl Sync for Pets
impl Unpin for Pets
impl UnsafeUnpin for Pets
impl UnwindSafe for Pets
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