oxide-engine-api 0.20.0

API for Oxide game engine plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Макрос для автоматической реализации ComponentData
macro_rules! impl_component_data {
    ($struct_name:ty) => {
        impl crate::components::ComponentData for $struct_name {
            fn get_type_name(&self) -> &str {
                stringify!($struct_name)
            }
        }
    };
}

mod transform;
pub use transform::*;

pub trait ComponentData: Send + Sync {
    fn get_type_name(&self) -> &str;
}