16 lines
548 B
Rust
Executable File
16 lines
548 B
Rust
Executable File
/// Gender is a Pokemon characteristic.
|
|
///
|
|
/// Required for standard pokemon functions, but somewhat controversial nowadays. Consider adding a feature
|
|
/// that allows for a more progressive gender system for those that want it?
|
|
#[derive(Eq, PartialEq, Copy, Clone, Debug)]
|
|
#[cfg_attr(feature = "serde", derive(serde_repr::Serialize_repr, serde_repr::Deserialize_repr))]
|
|
#[repr(u8)]
|
|
pub enum Gender {
|
|
/// The Pokemon has no gender.
|
|
Genderless = 0,
|
|
/// The Pokemon is male.
|
|
Male = 1,
|
|
/// The Pokemon is female.
|
|
Female = 2,
|
|
}
|