Macro entity_data::add_archetype [−][src]
macro_rules! add_archetype { ($storage_layout : expr, $($component_ty : ty), +) => { ... }; }
Expand description
A simple method of adding a archetype to EntityStorageLayout.
Examples
use entity_data::EntityStorageLayout; use entity_data::add_archetype; struct Comp1 { } struct Comp2 { } let mut layout = EntityStorageLayout::new(); let id = add_archetype!(layout, Comp1, Comp2);