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)]
|
2021-01-30 21:29:59 +00:00
|
|
|
|
2022-06-03 14:35:18 +00:00
|
|
|
extern crate lazy_static;
|
|
|
|
|
2022-06-06 11:54:59 +00:00
|
|
|
use crate::dynamic_data::libraries::script_resolver::ScriptCategory;
|
|
|
|
|
2022-06-11 15:22:46 +00:00
|
|
|
#[cfg(feature = "c_interface")]
|
2022-06-03 14:35:18 +00:00
|
|
|
mod c_interface;
|
|
|
|
|
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 {
|
|
|
|
ScriptNotFound {
|
|
|
|
category: ScriptCategory,
|
|
|
|
name: String,
|
|
|
|
},
|
|
|
|
MiscError,
|
|
|
|
}
|
|
|
|
|
2022-06-11 15:22:46 +00:00
|
|
|
pub type PkmnResult<T> = Result<T, PokemonError>;
|
|
|
|
|
|
|
|
pub use utils::*;
|