query<T extends GameComponent> method
Used to find component by type visible or not.
Implementation
@override
Iterable<T> query<T extends GameComponent>({bool onlyVisible = false}) {
if (onlyVisible) {
return visibles<T>();
}
return world.children.query<T>();
}