Handles caching of textures and sounds for the game. TODO: Remove this once Eric finishes the memory system.

Static methods

staticcacheNoteStyle(style:NoteStyle):Void

staticcacheSound(key:String):Void

staticcacheTexture(key:String):Void

Ensures a texture with the given key is cached.

Parameters:

key

The key of the texture to cache.

staticinlineclearFreeplay():Void

staticinlineclearStickers():Void

staticgetCachedGraphic(path:String):Null<FlxGraphic>

staticinlineinitialCache():Void

Caches textures that are always required.

staticinlineisGraphicCached(path:String):Bool

Checks, if graphic with given path cached in memory.

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.

staticpermanentCacheSound(key:String):Void

staticinlinepreparePurgeTextureCache():Void

Prepares the cache for purging unused textures.

@:value({ callGarbageCollector : false })staticinlinepurgeCache(callGarbageCollector:Bool = false):Void

Clears the current texture and sound caches.

staticinlinepurgeSoundCache():Void

Purges unused sounds from the cache.

staticpurgeTextureCache():Void

Purges unused textures from the cache.