tileListBelow method
Returns all tile components below the component.
Implementation
Iterable<TileComponent> tileListBelow() {
if (!_comp.hasGameRef) {
return [];
}
final map = _comp.gameRef.map;
if (map.layers.isNotEmpty) {
return map.getRenderedTiles().where((element) {
return element.overlaps(_comp.rectCollision) &&
(element.properties != null);
});
}
return [];
}