Codename LogoCodename Logo

funkin.backend.system.modules.FunkinCache

APIWiki

Static variables

Static methods

View in GitHub

staticinit():Void

Constructor

Methods

View in GitHub

getBitmapData(id:String):BitmapData

Retrieves a cached BitmapData.

Parameters:

id

The ID of the cached BitmapData

Returns:

The cached BitmapData instance

View in GitHub

getFont(id:String):Font

Retrieves a cached Font.

Parameters:

id

The ID of the cached Font

Returns:

The cached Font instance

View in GitHub

getSound(id:String):Sound

Retrieves a cached Sound.

Parameters:

id

The ID of the cached Sound

Returns:

The cached Sound instance

View in GitHub

hasBitmapData(id:String):Bool

Checks whether a BitmapData asset is cached.

Parameters:

id

The ID of a BitmapData asset

Returns:

Whether the object has been cached

View in GitHub

hasFont(id:String):Bool

Checks whether a Font asset is cached.

Parameters:

id

The ID of a Font asset

Returns:

Whether the object has been cached

View in GitHub

hasSound(id:String):Bool

Checks whether a Sound asset is cached.

Parameters:

id

The ID of a Sound asset

Returns:

Whether the object has been cached

View in GitHub

removeBitmapData(id:String):Bool

Removes a BitmapData from the cache.

Parameters:

id

The ID of a BitmapData asset

Returns:

true if the asset was removed, false if it was not in the cache

View in GitHub

removeFont(id:String):Bool

Removes a Font from the cache.

Parameters:

id

The ID of a Font asset

Returns:

true if the asset was removed, false if it was not in the cache

View in GitHub

removeSound(id:String):Bool

Removes a Sound from the cache.

Parameters:

id

The ID of a Sound asset

Returns:

true if the asset was removed, false if it was not in the cache