Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECPStringIDList Class Reference

List of string identifier values class property for use with XML loading. More...

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

Public Member Functions

void add (StringID string)
 Add string identifier.
void forEach (Block ablock)
 For each string identifier with block with String as parameter.
StringID getAt (int index)
 String identifier at index.
int getCount ()
 Number of string identifiers.
Array getList (StubWithProperties stub, CodecPropertyString codec)
 StringID list modified by stub property if present.
StringID getRandom ()
 Get random string identifier or null if no string identifiers are present.
ECPStringIDList new (String name)
 Create property.
void removeAll ()
 Remove all string identifiers.
void setValue (Object value)
 Set value of property from XML decoded value.
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
void dispose ()
 Dispose of element class property to break reference loops.
String getName ()
 Name.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.

Detailed Description

List of string identifier values class property for use with XML loading.

Member Function Documentation

◆ add()

void Dragengine.Scenery.ECPStringIDList.add ( StringID string)

Add string identifier.

Referenced by getList().

◆ forEach()

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

For each string identifier with block with String as parameter.

Referenced by getList(), and setValue().

◆ getAt()

StringID Dragengine.Scenery.ECPStringIDList.getAt ( int index)

String identifier at index.

References getCount().

Referenced by getRandom().

◆ getCount()

int Dragengine.Scenery.ECPStringIDList.getCount ( )

Number of string identifiers.

References getCount().

Referenced by getAt(), getCount(), and removeAll().

◆ getList()

Array Dragengine.Scenery.ECPStringIDList.getList ( StubWithProperties stub,
CodecPropertyString codec )

StringID list modified by stub property if present.

If named stub property is not present or empty string the stored list is returned. If the named stub property is present it is decoded using codec.

  • "id1 id2 ... idN"

References add(), forEach(), getList(), new(), removeAll(), and setValue().

Referenced by getList().

◆ getRandom()

StringID Dragengine.Scenery.ECPStringIDList.getRandom ( )

Get random string identifier or null if no string identifiers are present.

References getAt().

Referenced by removeAll().

◆ new()

ECPStringIDList Dragengine.Scenery.ECPStringIDList.new ( String name)

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new().

Referenced by getList(), and new().

◆ removeAll()

void Dragengine.Scenery.ECPStringIDList.removeAll ( )

Remove all string identifiers.

References getCount(), and getRandom().

Referenced by getList(), and setValue().

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References forEach(), and removeAll().

Referenced by getList().


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