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

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

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

Public Member Functions

void add (String string)
 Add string.
void forEach (Block ablock)
 For each string with block with String as parameter.
String getAt (int index)
 String at index.
int getCount ()
 Number of strings.
Array getList (StubWithProperties stub, CodecPropertyString codec)
 String list modified by stub property if present.
String getRandom ()
 Get random string or null if no strings are present.
bool has (String string)
 String is present.
int indexOf (String string)
 Index of first string or -1 if absent.
ECPStringList new (String name)
 Create property.
void removeAll ()
 Remove all strings.
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 values class property for use with XML loading.

Member Function Documentation

◆ add()

void Dragengine.Scenery.ECPStringList.add ( String string)

Add string.

References getCount(), and getRandom().

Referenced by getList().

◆ forEach()

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

For each string with block with String as parameter.

References has().

Referenced by getList(), and setValue().

◆ getAt()

String Dragengine.Scenery.ECPStringList.getAt ( int index)

String at index.

References getCount().

Referenced by indexOf().

◆ getCount()

int Dragengine.Scenery.ECPStringList.getCount ( )

Number of strings.

References getCount().

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

◆ getList()

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

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

  • "string1 string2 ... stringN"

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

Referenced by getList().

◆ getRandom()

String Dragengine.Scenery.ECPStringList.getRandom ( )

Get random string or null if no strings are present.

References indexOf().

Referenced by add().

◆ has()

bool Dragengine.Scenery.ECPStringList.has ( String string)

String is present.

Referenced by forEach(), and removeAll().

◆ indexOf()

int Dragengine.Scenery.ECPStringList.indexOf ( String string)

Index of first string or -1 if absent.

References getAt().

Referenced by getRandom().

◆ new()

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new().

Referenced by getList(), and new().

◆ removeAll()

void Dragengine.Scenery.ECPStringList.removeAll ( )

Remove all strings.

References has().

Referenced by getList(), and setValue().

◆ setValue()

void Dragengine.Scenery.ECPStringList.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: