util library

Provides utility functions.

Functions

getAmbiance({required AssetList assets, required Sound sound, Point<double>? position}) → Ambiance
Get an ambiance from the given sound.
getAssetReferenceReference({required AssetList assets, required String id}) → AssetReferenceReference
Return the asset reference with the given id.
getAssetStore({required String name, required AssetList assets, required String comment}) → AssetStore
Returns an asset store.
getMusic({required AssetList assets, required Sound? sound}) → Music?
Get an ambiance from the given sound.
playSound({required SoundChannel channel, required Sound sound, required AssetList assets, bool keepAlive = false, bool looping = false}) → PlaySound
Play the given sound through the given channel.