Properties:
Name | Type | Description |
---|---|---|
config |
Record<string, any> |
A config to adjust the parser |
extension |
ExtensionMetadata |
The extension type of this cache parser |
getCacheableAssets |
(keys: string[], asset: T) => Record<string, any> |
If the test passes, this function is called to get the cacheable assets an example may be that a spritesheet object will return all the sub textures it has so they can be cached. |
test |
(asset: T) => boolean |
Gets called by the cache when a dev caches an asset |
Members
A config to adjust the parser
extension ExtensionMetadata
The extension type of this cache parser
If the test passes, this function is called to get the cacheable assets an example may be that a spritesheet object will return all the sub textures it has so they can be cached.
Gets called by the cache when a dev caches an asset