Drag[en]gine Script Module DragonScript
1.23
|
Dictionary of element class elements class property for use with XML loading. More...
Public Member Functions | |
void | dispose () |
Dispose of element class property to break reference loops. More... | |
void | forEach (Block ablock) |
Visit element class with block with String id and ElementClass value. More... | |
ElementClass | getAt (String id) |
Element class with identifier or null if absent. More... | |
int | getCount () |
Number of element classes. More... | |
ElementClassList | getElementClassList () |
Element class manager to look up element class in. More... | |
bool | getHasPreloaded () |
Property has been preloaded. More... | |
ECPElementClassMap | new (String name, ElementClassList eclassList) |
Create property. More... | |
void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
Preload resources if supported. More... | |
void | removeAll () |
Remove all element classes. More... | |
void | removeAllNames () |
Remove all element class names. More... | |
void | setAt (String id, ElementClass elementClass) |
Set element class. More... | |
void | setNameAt (String id, String elementClassName) |
Set element class name. 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... | |
Dictionary of element class elements class property for use with XML loading.
Similar to ECPElementClassList but assigns each element class a unique name. This is useful to define element classes to use mapped against well known identifiers. Also allows to map the same element class to multiple unique identifiers if required.
void Dragengine.Scenery.ECPElementClassMap.dispose | ( | ) |
Dispose of element class property to break reference loops.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPElementClassMap.forEach | ( | Block | ablock | ) |
Visit element class with block with String id and ElementClass value.
ElementClass Dragengine.Scenery.ECPElementClassMap.getAt | ( | String | id | ) |
Element class with identifier or null if absent.
int Dragengine.Scenery.ECPElementClassMap.getCount | ( | ) |
Number of element classes.
ElementClassList Dragengine.Scenery.ECPElementClassMap.getElementClassList | ( | ) |
Element class manager to look up element class in.
bool Dragengine.Scenery.ECPElementClassMap.getHasPreloaded | ( | ) |
Property has been preloaded.
ECPElementClassMap Dragengine.Scenery.ECPElementClassMap.new | ( | String | name, |
ElementClassList | eclassList | ||
) |
Create property.
void Dragengine.Scenery.ECPElementClassMap.preloadResources | ( | ElementClass | elementClass, |
PreloadCounter | counter | ||
) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPElementClassMap.removeAll | ( | ) |
Remove all element classes.
void Dragengine.Scenery.ECPElementClassMap.removeAllNames | ( | ) |
Remove all element class names.
void Dragengine.Scenery.ECPElementClassMap.setAt | ( | String | id, |
ElementClass | elementClass | ||
) |
Set element class.
void Dragengine.Scenery.ECPElementClassMap.setNameAt | ( | String | id, |
String | elementClassName | ||
) |
Set element class name.
void Dragengine.Scenery.ECPElementClassMap.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.