Drag[en]gine Script Module DragonScript
1.23
|
List of element class elements class property for use with XML loading. More...
Public Member Functions | |
void | addElementClass (ElementClass elementClass) |
Add element class. More... | |
void | addElementClassName (String elementClassName) |
Add element class name. More... | |
void | dispose () |
Dispose of element class property to break reference loops. More... | |
void | forEachElementClass (Block ablock) |
For each element class with block with ElementClass as parameter. More... | |
ElementClass | getElementClassAt (int index) |
Element clas at index. More... | |
int | getElementClassCount () |
Number of element classes. More... | |
ElementClassList | getElementClassList () |
Element class manager to look up element class in. More... | |
bool | getHasPreloaded () |
Property has been preloaded. More... | |
ElementClass | getRandomElementClass () |
Get random element class or null if no element class is present. More... | |
ECPElementClassList | new (String name, ElementClassList eclassList) |
Create property. More... | |
void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
Preload resources if supported. More... | |
void | removeAllElementClass () |
Remove all element classes. More... | |
void | removeAllElementClassNames () |
Remove all element class names. More... | |
void | setValue (Object value) |
Set value of property from XML decoded value. More... | |
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
String | getName () |
Name. More... | |
bool | logPreloadProblems (ElementClass elementClass, Console console) |
Log preloading problems. More... | |
ElementClassProperty | new (String name) |
Create property. More... | |
List of element class elements class property for use with XML loading.
Similar to ECPElementClass but allows to store any number of element classes. Useful for having a list of similar element classes picking one randomly.
void Dragengine.Scenery.ECPElementClassList.addElementClass | ( | ElementClass | elementClass | ) |
Add element class.
void Dragengine.Scenery.ECPElementClassList.addElementClassName | ( | String | elementClassName | ) |
Add element class name.
void Dragengine.Scenery.ECPElementClassList.dispose | ( | ) |
Dispose of element class property to break reference loops.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPElementClassList.forEachElementClass | ( | Block | ablock | ) |
For each element class with block with ElementClass as parameter.
ElementClass Dragengine.Scenery.ECPElementClassList.getElementClassAt | ( | int | index | ) |
Element clas at index.
int Dragengine.Scenery.ECPElementClassList.getElementClassCount | ( | ) |
Number of element classes.
ElementClassList Dragengine.Scenery.ECPElementClassList.getElementClassList | ( | ) |
Element class manager to look up element class in.
bool Dragengine.Scenery.ECPElementClassList.getHasPreloaded | ( | ) |
Property has been preloaded.
ElementClass Dragengine.Scenery.ECPElementClassList.getRandomElementClass | ( | ) |
Get random element class or null if no element class is present.
ECPElementClassList Dragengine.Scenery.ECPElementClassList.new | ( | String | name, |
ElementClassList | eclassList | ||
) |
Create property.
void Dragengine.Scenery.ECPElementClassList.preloadResources | ( | ElementClass | elementClass, |
PreloadCounter | counter | ||
) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPElementClassList.removeAllElementClass | ( | ) |
Remove all element classes.
void Dragengine.Scenery.ECPElementClassList.removeAllElementClassNames | ( | ) |
Remove all element class names.
void Dragengine.Scenery.ECPElementClassList.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.