Drag[en]gine Script Module DragonScript Script API  1.0
Preloader.ResourceFinishedListener Class Reference

Listener used by preloaded resources. More...

Inheritance diagram for Preloader.ResourceFinishedListener:
ResourceNotifier PreloadDynamicMusic.PartMusicFinishedListener

Public Member Functions

void failedLoading (String path, int resourceType)
 Resource has failed loading. More...
 
void finishedLoading (String path, int resourceType, Object resource)
 Resource finished loading. More...
 
ResourceFinishedListener new (Preloader preloader)
 Create resource listener. More...
 
Notification

Detailed Description

Listener used by preloaded resources.

Subclass for handling for resource but always super call to not break finished tracking.

Member Function Documentation

§ failedLoading()

void failedLoading ( String  path,
int  resourceType 
)

Resource has failed loading.

Notifies preloader about resource finished loading.

Implements ResourceNotifier.

§ finishedLoading()

void finishedLoading ( String  path,
int  resourceType,
Object  resource 
)

Resource finished loading.

Notifies preloader about resource finished loading.

Implements ResourceNotifier.

§ new()

ResourceFinishedListener new ( Preloader  preloader)

Create resource listener.

Increments total number of resources to preload in preloader by 1.


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