Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECPElementClassMap Class Reference

Dictionary of element class elements class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPElementClassMap:
Dragengine.Scenery.ElementClassProperty

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...
 

Detailed Description

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.

Member Function Documentation

◆ dispose()

void Dragengine.Scenery.ECPElementClassMap.dispose ( )

Dispose of element class property to break reference loops.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ forEach()

void Dragengine.Scenery.ECPElementClassMap.forEach ( Block  ablock)

Visit element class with block with String id and ElementClass value.

◆ getAt()

ElementClass Dragengine.Scenery.ECPElementClassMap.getAt ( String  id)

Element class with identifier or null if absent.

◆ getCount()

int Dragengine.Scenery.ECPElementClassMap.getCount ( )

Number of element classes.

◆ getElementClassList()

ElementClassList Dragengine.Scenery.ECPElementClassMap.getElementClassList ( )

Element class manager to look up element class in.

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPElementClassMap.getHasPreloaded ( )

Property has been preloaded.

◆ new()

ECPElementClassMap Dragengine.Scenery.ECPElementClassMap.new ( String  name,
ElementClassList  eclassList 
)

Create property.

◆ preloadResources()

void Dragengine.Scenery.ECPElementClassMap.preloadResources ( ElementClass  elementClass,
PreloadCounter  counter 
)

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ removeAll()

void Dragengine.Scenery.ECPElementClassMap.removeAll ( )

Remove all element classes.

◆ removeAllNames()

void Dragengine.Scenery.ECPElementClassMap.removeAllNames ( )

Remove all element class names.

◆ setAt()

void Dragengine.Scenery.ECPElementClassMap.setAt ( String  id,
ElementClass  elementClass 
)

Set element class.

◆ setNameAt()

void Dragengine.Scenery.ECPElementClassMap.setNameAt ( String  id,
String  elementClassName 
)

Set element class name.

◆ setValue()

void Dragengine.Scenery.ECPElementClassMap.setValue ( Object  value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.


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