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.
auto query = eman.query!(Position, Velocity, IsMovable); foreach(EntityId id, Position* position, Velocity* velocity; query) { position.vector += velocity.vector; }
See Implementation
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.