pub struct ScrapBook {
pub items: HashSet<EquipmentIdent>,
pub monster: HashSet<u16>,
}Expand description
Contains all the items & monsters you have found in the scrapbook
Fields§
§items: HashSet<EquipmentIdent>All the items, that this player has already collected. To check if an
item is in this, you should call equipment_ident() on an item and see
if this item contains that
monster: HashSet<u16>All the monsters, that the player has seen already. I have only checked this once, but this should match the tavern monster id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScrapBook
impl<'de> Deserialize<'de> for ScrapBook
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 ScrapBook
impl RefUnwindSafe for ScrapBook
impl Send for ScrapBook
impl Sync for ScrapBook
impl Unpin for ScrapBook
impl UnwindSafe for ScrapBook
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