2022-08-14 11:37:17 +00:00
|
|
|
pub mod ability;
|
2022-07-24 07:25:37 +00:00
|
|
|
pub mod data_libraries;
|
|
|
|
pub mod effect_parameter;
|
|
|
|
pub mod item;
|
|
|
|
pub mod move_data;
|
2022-08-14 11:37:17 +00:00
|
|
|
mod nature;
|
2022-07-24 07:25:37 +00:00
|
|
|
pub mod species;
|
2023-01-06 13:17:46 +00:00
|
|
|
pub mod statistics;
|
2022-07-24 07:25:37 +00:00
|
|
|
|
2023-01-04 16:24:13 +00:00
|
|
|
pub use ability::*;
|
2022-07-24 07:25:37 +00:00
|
|
|
pub use data_libraries::*;
|
2023-01-06 13:17:46 +00:00
|
|
|
pub use effect_parameter::*;
|
2022-07-24 07:25:37 +00:00
|
|
|
pub use item::*;
|
|
|
|
pub use move_data::*;
|
2022-08-14 11:37:17 +00:00
|
|
|
pub use nature::*;
|
2022-07-24 07:25:37 +00:00
|
|
|
pub use species::*;
|
2023-01-06 13:17:46 +00:00
|
|
|
pub use statistics::*;
|
2022-08-14 11:37:17 +00:00
|
|
|
|
|
|
|
pub type LevelInt = u8;
|
2022-08-28 13:50:12 +00:00
|
|
|
|
|
|
|
/// A unique key that can be used to store a reference to a type. Opaque reference to a byte
|
|
|
|
/// internally.
|
|
|
|
#[derive(Debug, Copy, Clone, Eq, PartialEq, Default, Hash)]
|
|
|
|
pub struct TypeIdentifier {
|
|
|
|
/// The unique internal value.
|
|
|
|
val: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl From<u8> for TypeIdentifier {
|
|
|
|
fn from(val: u8) -> Self {
|
|
|
|
Self { val }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl From<TypeIdentifier> for u8 {
|
|
|
|
fn from(id: TypeIdentifier) -> Self {
|
|
|
|
id.val
|
|
|
|
}
|
|
|
|
}
|