1
0
Fork 0

Added means of getting tile dimensions for subtypes that wish to override TileMasker.getMaskedTileSet

master
Mike Gerwitz 2012-03-12 21:18:08 -04:00
parent 1364c08cf4
commit ae01d6ee08
1 changed files with 13 additions and 0 deletions

View File

@ -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 * Apply mask to each tile and return individual tiles
* *