Constructors
constructor
- new TileCache(): TileCache
Methods
add
- add(tile, addCallback?): void
Parameters
- tile: Tile
Optional
addCallback: ((tile: Tile) => void)
Returns void
reset
- reset(): void
Returns void
toArray
- toArray(): Tile[]
Returns Tile[]
touch
- touch(tile): void
Returns void
unloadTile
- unloadTile(tile, unloadCallback?): void
Parameters
- tile: Tile
Optional
unloadCallback: ((tile: Tile) => void)
Returns void
unloadTiles
- unloadTiles(isOverMemory, unloadCallback?): void
Parameters
- isOverMemory: (() => boolean)
- (): boolean
Returns boolean
Optional
unloadCallback: ((tile: Tile) => void)
Returns void