tilePropertiesListBelow method

List<Map<String, dynamic>>? tilePropertiesListBelow()

Returns all tile properties below the component.

Implementation

List<Map<String, dynamic>>? tilePropertiesListBelow() {
  if (!_comp.hasGameRef) {
    return null;
  }
  final map = _comp.gameRef.map;
  if (map.layers.isNotEmpty) {
    return tileListBelow()
        .map<Map<String, dynamic>>((e) => e.properties!)
        .toList();
  }
  return null;
}