[][src]Macro nano_ecs::ecs

macro_rules! ecs {
    ($max_components:tt : $($x:ident),* $(,)?) => { ... };
}

Creates an Entity-Component-System.

The first number is how many components are allowed per entity. A lower number reduces compile time. This can be 4, 8, 16, 32, 64.

Example: ecs!{4; Position, Velocity}