PkmnLib_rs/src/static_data/libraries/library_settings.rs

17 lines
301 B
Rust

use crate::defines::LevelInt;
#[derive(Debug)]
pub struct LibrarySettings {
maximum_level: LevelInt,
}
impl LibrarySettings {
pub fn new(maximum_level: LevelInt) -> Self {
Self { maximum_level }
}
pub fn maximum_level(&self) -> LevelInt {
self.maximum_level
}
}