Drag[en]gine Script Module DragonScript
1.23
|
Preload announcer. More...
Classes | |
class | PartSoundFinishedListener |
Preload part sound listener. More... | |
Public Member Functions | |
void | finishPreloading () |
Finish preloading. More... | |
Announcer | getAnnouncer () |
Dynamic sound to preload. More... | |
PreloadAnnouncer | new (Announcer announcer, PreloadCounter parentCounter) |
Create preloader. More... | |
Public Member Functions inherited from Dragengine.Preloading.Preloader | |
void | addListener (PreloadListener listener) |
Add listener. More... | |
void | checkFinished () |
Check if preloading finished. More... | |
PreloadCounter | getCounter () |
Preload counter. More... | |
bool | getPreloading () |
Preloading. More... | |
bool | getSuccess () |
All resources preloaded successfully. More... | |
int | getTotalResourceCount () |
Total number of resources to preload. More... | |
Preloader | new (PreloadCounter parentCounter) |
Create preloader. More... | |
void | notifyAllPreloadingFinished () |
Notify listeners preloading finished. More... | |
void | notifyAllResourcesFinished () |
Notify listeners resources finished preloading. More... | |
float | percentageFinished () |
Percentage of resources finished preloading. More... | |
void | removeListener (PreloadListener listener) |
Remove listener. More... | |
void | resourceFinished (bool success) |
Resource finished preloading. More... | |
Preload announcer.
Preloads sound files and finishes the announcer once all resources are loaded. To use create preloader and add one or more listeners to them. Once ready to preload call startPreloading().
void Dragengine.Audio.Announcer.PreloadAnnouncer.finishPreloading | ( | ) |
Finish preloading.
Reimplemented from Dragengine.Preloading.Preloader.
Announcer Dragengine.Audio.Announcer.PreloadAnnouncer.getAnnouncer | ( | ) |
Dynamic sound to preload.
PreloadAnnouncer Dragengine.Audio.Announcer.PreloadAnnouncer.new | ( | Announcer | announcer, |
PreloadCounter | parentCounter | ||
) |
Create preloader.