* set the object image (for Tiled Object) * @ignore
(tilesets)
| 210 | * @ignore |
| 211 | */ |
| 212 | setTile(tilesets) { |
| 213 | const tileset = tilesets.getTilesetByGid(this.gid); |
| 214 | |
| 215 | if (tileset.isCollection === false) { |
| 216 | this.width = this.framewidth = tileset.tilewidth; |
| 217 | this.height = this.frameheight = tileset.tileheight; |
| 218 | } |
| 219 | |
| 220 | this.tile = new Tile(this.x, this.y, this.gid, tileset); |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * parses the TMX shape definition and returns a corresponding array of shape objects |
no test coverage detected