TileModelSprite.fromMap constructor

TileModelSprite.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory TileModelSprite.fromMap(Map<String, dynamic> map) {
  return TileModelSprite(
    path: map['path'],
    position: Vector2(map['column'], map['row']),
    size: Vector2(map['width'], map['height']),
  );
}