use crate::Component; use lyra_math::{Vec3, Quat, Vec2, Vec4, Mat4, Transform}; macro_rules! impl_external_component { ($type: ident) => { impl Component for $type { fn name() -> &'static str { stringify!($type) } } }; } impl_external_component!(Vec2); impl_external_component!(Vec3); impl_external_component!(Vec4); impl_external_component!(Mat4); impl_external_component!(Quat); impl_external_component!(Transform);