updateTiles method

  1. @override
Future<void> updateTiles(
  1. List<TileModel> map
)
override

Implementation

@override
Future<void> updateTiles(List<TileModel> map) async {
  lastSizeScreen = null;
  tiles = map;
  size = _calculateMapSize();
  await Future.forEach<TileModel>(tiles, _loadTile);
  _createQuadTree(gameRef.size, isUpdate: true);
}