Drag[en]gine Script Module DragonScript
1.23
|
Helper class for preloading resources. More...
Public Member Functions | |
void | addElementClass (ElementClass elementClass) |
Add element class if absent. More... | |
void | addElementClassDependencies () |
Add element classes registered classes depend upon. More... | |
PreloadCounter | getCounter () |
Preload counter. More... | |
PreloadManager | new () |
Create preload manager instance. More... | |
void | preloadElementClasses () |
Preload element classes. More... | |
void | removeAllElementClasses () |
Remove all element classes. More... | |
void | reset () |
Reset preload manager to initial state. More... | |
Helper class for preloading resources.
To properly track the progress of preloading do the following:
Doing so this counter can be used to monitor the entire loading process.
void Dragengine.Preloading.PreloadManager.addElementClass | ( | ElementClass | elementClass | ) |
Add element class if absent.
void Dragengine.Preloading.PreloadManager.addElementClassDependencies | ( | ) |
Add element classes registered classes depend upon.
Call this function before calling the preloadElementClasses function.
PreloadCounter Dragengine.Preloading.PreloadManager.getCounter | ( | ) |
Preload counter.
PreloadManager Dragengine.Preloading.PreloadManager.new | ( | ) |
Create preload manager instance.
void Dragengine.Preloading.PreloadManager.preloadElementClasses | ( | ) |
Preload element classes.
void Dragengine.Preloading.PreloadManager.removeAllElementClasses | ( | ) |
Remove all element classes.
void Dragengine.Preloading.PreloadManager.reset | ( | ) |
Reset preload manager to initial state.