Drag[en]gine Script Module DragonScript Script API  1.0
PreloadListener Interface Reference

Listener interface for objects supporting preloading. More...

Inheritance diagram for PreloadListener:
DefaultPreloadListener

Public Member Functions

void preloadingFinished (Preloader preloader, bool success)
 Preloading of all resources finished. More...
 
void resourcesFinished (Preloader preloader)
 One or more resources finished preloading but. More...
 

Detailed Description

Listener interface for objects supporting preloading.

Used by objects preloading more than one resource. Sends notification each time the state of preloading changes. This includes resources having finished preloading and preloading of the entire object having finished either successfully or failed.

Author
Roland Pl├╝ss
Date
2016

Member Function Documentation

§ preloadingFinished()

void preloadingFinished ( Preloader  preloader,
bool  success 
)

Preloading of all resources finished.

Parameters
preloaderPreloader sending event.
successIf true all resources preloaded successfully and the object is ready to use. If false one or more resources failed to preload and the object is potentially invalid to use safely.

Implemented in DefaultPreloadListener.

§ resourcesFinished()

void resourcesFinished ( Preloader  preloader)

One or more resources finished preloading but.

Parameters
preloaderPreloader sending event.

Implemented in DefaultPreloadListener.


The documentation for this interface was generated from the following file: