Drag[en]gine Script Module DragonScript  1.23
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. More...
 
void forEach (Block ablock)
 For each string with block with String as parameter. More...
 
String getAt (int index)
 String at index. More...
 
int getCount ()
 Number of strings. More...
 
Array getList (StubWithProperties stub, CodecPropertyString codec)
 String list modified by stub property if present. More...
 
String getRandom ()
 Get random string or null if no strings are present. More...
 
bool has (String string)
 String is present. More...
 
int indexOf (String string)
 Index of first string or -1 if absent. More...
 
ECPStringList new (String name)
 Create property. More...
 
void removeAll ()
 Remove all strings. More...
 
void setValue (Object value)
 Set value of property from XML decoded value. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
void dispose ()
 Dispose of element class property to break reference loops. More...
 
String getName ()
 Name. More...
 
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems. More...
 
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported. More...
 

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.

◆ forEach()

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

For each string with block with String as parameter.

◆ getAt()

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

String at index.

◆ getCount()

int Dragengine.Scenery.ECPStringList.getCount ( )

Number of strings.

◆ 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"

◆ getRandom()

String Dragengine.Scenery.ECPStringList.getRandom ( )

Get random string or null if no strings are present.

◆ has()

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

String is present.

◆ indexOf()

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

Index of first string or -1 if absent.

◆ new()

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ removeAll()

void Dragengine.Scenery.ECPStringList.removeAll ( )

Remove all strings.

◆ setValue()

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