PkmnLib_rs/src/lib.rs

33 lines
720 B
Rust
Raw Normal View History

// 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)]
extern crate core;
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;
#[cfg(feature = "c_interface")]
2022-06-03 14:35:18 +00:00
mod c_interface;
pub mod defines;
pub mod dynamic_data;
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,
InvalidTargetRequested,
2022-06-06 11:54:59 +00:00
}
pub type PkmnResult<T> = Result<T, PokemonError>;
pub use utils::*;