Struct breed_planner::breed::Monster
source · struct Monster {
name: String,
sex: Sex,
index: u16,
plus_level_min: u16,
}
Expand description
A monster of some kind, like “a female RainHawk”. In a breed plan, a monster is uniquely identified (only) by the name, the sex, and the index.
Fields§
§name: String
Name of the kind of monster, e.g. “RainHawk”.
sex: Sex
§index: u16
This is used to distiguish two monsters of the same kind in a breed plan. If the plan has 2 slimes, one can have index 0 (default) and the other can have index 1.
plus_level_min: u16
The minimal plus level required of this monster. 0 means no requirements.
Implementations§
Trait Implementations§
source§impl PartialEq<Monster> for Monster
impl PartialEq<Monster> for Monster
impl Eq for Monster
Auto Trait Implementations§
impl RefUnwindSafe for Monster
impl Send for Monster
impl Sync for Monster
impl Unpin for Monster
impl UnwindSafe for Monster
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