property

Macro property 

Source
macro_rules! property {
    ($ent:expr, $ty:ty, $fmt:literal, $($arg:tt)*) => { ... };
    ($ent:expr, $ty:ty, $fmt:literal) => { ... };
    ($ent:expr, $fmt:expr, $($arg:tt)*) => { ... };
    ($ent:expr, $fmt:expr) => { ... };
}
Expand description

Macro for getting property from crate::Entity.

ยงExamples

let x: i32 = property!(entity, "property_name");
let y = property!(entity, i32, "property_name");