Gen7ScriptsRs/gen_7_scripts/src/utils/mod.rs

26 lines
448 B
Rust
Raw Normal View History

2022-09-09 18:09:56 +00:00
pub mod copyable_moves;
#[macro_export]
macro_rules! script{
(
$name: ident,
$id: literal
$(
,
$field_name:ident : $field_type:ty
)*
) => {
pub struct $name {
$(
$field_name: $field_type,
)*
}
impl $name {
pub const fn get_const_name() -> &'static str {
$id
}
}
}
}