2021-01-30 21:29:59 +00:00
|
|
|
use crate::defines::LevelInt;
|
|
|
|
|
2022-07-01 15:07:22 +00:00
|
|
|
/// This library holds several misc settings for the library.
|
2022-06-06 12:43:41 +00:00
|
|
|
#[derive(Debug)]
|
2021-01-30 21:29:59 +00:00
|
|
|
pub struct LibrarySettings {
|
2022-07-01 15:07:22 +00:00
|
|
|
/// The highest level a Pokemon can be.
|
2022-06-06 12:43:41 +00:00
|
|
|
maximum_level: LevelInt,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl LibrarySettings {
|
2022-07-01 15:07:22 +00:00
|
|
|
/// Creates a new settings library.
|
2022-06-06 12:43:41 +00:00
|
|
|
pub fn new(maximum_level: LevelInt) -> Self {
|
|
|
|
Self { maximum_level }
|
|
|
|
}
|
|
|
|
|
2022-07-01 15:07:22 +00:00
|
|
|
/// The highest level a Pokemon can be.
|
2022-06-06 12:43:41 +00:00
|
|
|
pub fn maximum_level(&self) -> LevelInt {
|
|
|
|
self.maximum_level
|
|
|
|
}
|
2021-01-30 21:29:59 +00:00
|
|
|
}
|