Handles caching of textures and sounds for the game. TODO: Remove this once Eric finishes the memory system.
Static methods
staticcacheTexture(key:String):Void
Ensures a texture with the given key is cached.
Parameters:
key | The key of the texture to cache. |
|---|
staticisTextureCached(key:String):Bool
Determine whether the texture with the given key is cached.
Parameters:
key | The key of the texture to check. |
|---|
Returns:
Whether the texture is cached.
staticinlinepurgeCache(callGarbageCollector:Bool = false):Void
Clears the current texture and sound caches.