EntityManager.query

Returns query object for given set of component types for iteration with foreach. Will pass EntityId, followed by pointers to components. Flag components are omitted.

struct EntityManager
query
(
Components...
)
()

Examples

 auto query = eman.query!(Position, Velocity, IsMovable);
	foreach(EntityId id, Position* position, Velocity* velocity; query)
 {
 	position.vector += velocity.vector;
 }

Meta