Added means of getting tile dimensions for subtypes that wish to override TileMasker.getMaskedTileSet
parent
1364c08cf4
commit
ae01d6ee08
|
@ -214,6 +214,19 @@ ltjs.TileMasker = Class( 'TileMasker',
|
|||
},
|
||||
|
||||
|
||||
/**
|
||||
* For use by subtypes that may need access to the otherwise private data
|
||||
*
|
||||
* See getMaskedTileSet().
|
||||
*
|
||||
* @return {Array.<number>} tile width, height and number per row
|
||||
*/
|
||||
'protected getTileDimensions': function()
|
||||
{
|
||||
return [ this._tileWidth, this._tileHeight, this._tilesPerRow ];
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Apply mask to each tile and return individual tiles
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue