query2<T1 extends Component, T2 extends Component> method
Queries entities that have both the specified components T1
and T2
.
Implementation
Iterable<WorldEntity> query2<T1 extends Component, T2 extends Component>() {
return query([
withComponent<T1>,
withComponent<T2>,
]);
}