* Class: Gfx2Tileset #author("2024-02-10T19:10:20+00:00","","") The `Gfx2Tileset` class represents a tileset in a tilemap. ** Constructors - ''new Gfx2Tileset''(): Gfx2Tileset~ The constructor.~ ** Methods - ''getAnimation''(tileId: number)~ The "getAnimation" function returns an array of numbers or undefined based on the given tileId.~ -- ''tileId'': The `tileId` parameter is a number that represents the ID of a tile.~ ~ - ''getColumns''(): number~ The "getColumns" function returns the number of columns.~ ~ - ''getTexture''()~ The "getTexture" function returns either an ImageBitmap or an HTMLImageElement.~ ~ - ''getTileHeight''(): number~ The "getTileHeight" function returns the height of a tile.~ ~ - ''getTilePositionX''(tileId: number): number~ The "getTilePositionX" function calculates the x-coordinate of a tile (tile index start at 1).~ -- ''tileId'': The tileId parameter is a number that represents the tile index number.~ ~ - ''getTilePositionY''(tileId: number): number~ The "getTilePositionY" function calculates the y-coordinate of a tile (tile index start at 1).~ -- ''tileId'': The tileId parameter is a number that represents the tile index number.~ ~ - ''getTileWidth''(): number~ The "getTileWidth" function returns the width of a tile.~ ~ - ''loadFromData''(data: any): Promise~ The "loadFromData" function loads tileset data.~ -- ''data'': The `data` object.~