2022-07-24 07:25:37 +00:00
|
|
|
#![feature(inline_const)]
|
|
|
|
#![feature(inline_const_pat)]
|
|
|
|
#![feature(wasm_abi)]
|
2023-01-04 16:24:13 +00:00
|
|
|
#![feature(trait_upcasting)]
|
2022-08-17 16:05:38 +00:00
|
|
|
#![cfg_attr(not(test), no_std)]
|
2022-07-24 07:25:37 +00:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
extern crate alloc;
|
|
|
|
|
2023-01-06 13:17:46 +00:00
|
|
|
#[cfg(not(test))]
|
2022-07-24 07:25:37 +00:00
|
|
|
use alloc::boxed::Box;
|
2023-01-05 11:54:18 +00:00
|
|
|
#[cfg(not(test))]
|
2022-07-24 07:25:37 +00:00
|
|
|
use pkmn_lib_interface::set_load_script_fn;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
|
|
|
|
pub mod registered_scripts;
|
2023-01-28 12:59:54 +00:00
|
|
|
pub(crate) mod common_usings;
|
2022-08-28 13:50:12 +00:00
|
|
|
pub mod moves;
|
2022-09-10 08:29:00 +00:00
|
|
|
pub mod pokemon;
|
2022-08-28 13:50:12 +00:00
|
|
|
pub mod util_scripts;
|
2022-09-09 18:09:56 +00:00
|
|
|
pub(crate) mod utils;
|
2022-09-10 09:12:27 +00:00
|
|
|
pub mod weather;
|
2022-07-24 07:25:37 +00:00
|
|
|
|
|
|
|
#[no_mangle]
|
2022-08-17 16:05:38 +00:00
|
|
|
#[cfg(not(test))]
|
2022-07-24 07:25:37 +00:00
|
|
|
extern "wasm" fn _init() {
|
|
|
|
set_load_script_fn(Box::new(registered_scripts::get_script));
|
|
|
|
}
|