[][src]Macro mecs::entity

macro_rules! entity {
    [ $( $cmpt:expr ),* $(,)? ] => { ... };
}

Creates an entity from it's components

Example

use mecs::{Entity, DynStorage};
 
let entity: Entity<DynStorage> = mecs::entity![
	DynStorage::new(23),
	DynStorage::new("Test"),
	DynStorage::new(5.257),
];