2021-01-30 21:29:59 +00:00
|
|
|
// The too many arguments is annoying, especially for when we create constructors, disable.
|
|
|
|
#![allow(clippy::too_many_arguments, clippy::needless_range_loop)]
|
2022-06-03 14:35:18 +00:00
|
|
|
#![feature(test)]
|
|
|
|
#![feature(bench_black_box)]
|
|
|
|
#![feature(let_chains)]
|
2022-06-16 15:59:33 +00:00
|
|
|
#![feature(once_cell)]
|
2022-06-18 12:17:29 +00:00
|
|
|
#![feature(const_option)]
|
2022-06-18 13:52:39 +00:00
|
|
|
#![feature(is_some_with)]
|
2021-01-30 21:29:59 +00:00
|
|
|
|
2022-06-12 15:57:39 +00:00
|
|
|
extern crate core;
|
2022-06-03 14:35:18 +00:00
|
|
|
|
2022-06-06 11:54:59 +00:00
|
|
|
use crate::dynamic_data::libraries::script_resolver::ScriptCategory;
|
|
|
|
|
2021-01-30 21:29:59 +00:00
|
|
|
pub mod defines;
|
2021-01-31 16:31:22 +00:00
|
|
|
pub mod dynamic_data;
|
2021-01-30 21:29:59 +00:00
|
|
|
pub mod static_data;
|
|
|
|
pub mod utils;
|
2022-06-06 11:54:59 +00:00
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub enum PokemonError {
|
2022-06-16 15:59:33 +00:00
|
|
|
ScriptNotFound { category: ScriptCategory, name: String },
|
2022-06-06 11:54:59 +00:00
|
|
|
MiscError,
|
2022-06-12 15:57:39 +00:00
|
|
|
InvalidTargetRequested,
|
2022-06-06 11:54:59 +00:00
|
|
|
}
|
|
|
|
|
2022-06-11 15:22:46 +00:00
|
|
|
pub type PkmnResult<T> = Result<T, PokemonError>;
|
|
|
|
|
|
|
|
pub use utils::*;
|