macro_rules! Ecs {
{
// Declare the type of the (plain old data) component and the
// identifier to use for it in the ECS.
$($compname:ident: $comptype:ty,)+
} => { ... };
}
Expand description
Entity component system builder macro.
Defines a local Ecs
type that’s parametrized with a custom component
store type with the component types you specify. Will also define a trait
Component
which will be implemented for the component types.