|
@ -63,6 +63,34 @@ impl Into<u8> for CharacterClass { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl CharacterClass {
|
|
|
|
|
|
pub fn is_human(&self) -> bool {
|
|
|
|
|
|
match self {
|
|
|
|
|
|
CharacterClass::HUmar |
|
|
|
|
|
|
CharacterClass::RAmar | CharacterClass::RAmarl |
|
|
|
|
|
|
CharacterClass::FOmar | CharacterClass::FOmarl => true,
|
|
|
|
|
|
|
|
|
|
|
|
_ => false,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn is_newman(&self) -> bool {
|
|
|
|
|
|
match self {
|
|
|
|
|
|
CharacterClass::HUnewearl |
|
|
|
|
|
|
CharacterClass::FOnewm | CharacterClass::FOnewearl => true,
|
|
|
|
|
|
_ => false,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn is_android(&self) -> bool {
|
|
|
|
|
|
match self {
|
|
|
|
|
|
CharacterClass::HUcast | CharacterClass::HUcaseal |
|
|
|
|
|
|
CharacterClass::RAcast | CharacterClass::RAcaseal => true,
|
|
|
|
|
|
_ => false,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq, enum_utils::FromStr, derive_more::Display, Serialize, Deserialize)]
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq, enum_utils::FromStr, derive_more::Display, Serialize, Deserialize)]
|
|
|
pub enum SectionID {
|
|
|
pub enum SectionID {
|
|
|