26 lines
448 B
Rust
26 lines
448 B
Rust
|
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
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|