Drag[en]gine Script Module DragonScript
1.23
|
List of string values class property for use with XML loading. More...
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... | |
List of string values class property for use with XML loading.
void Dragengine.Scenery.ECPStringList.add | ( | String | string | ) |
Add string.
void Dragengine.Scenery.ECPStringList.forEach | ( | Block | ablock | ) |
For each string with block with String as parameter.
String Dragengine.Scenery.ECPStringList.getAt | ( | int | index | ) |
String at index.
int Dragengine.Scenery.ECPStringList.getCount | ( | ) |
Number of strings.
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.
String Dragengine.Scenery.ECPStringList.getRandom | ( | ) |
Get random string or null if no strings are present.
bool Dragengine.Scenery.ECPStringList.has | ( | String | string | ) |
String is present.
int Dragengine.Scenery.ECPStringList.indexOf | ( | String | string | ) |
Index of first string or -1 if absent.
ECPStringList Dragengine.Scenery.ECPStringList.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPStringList.removeAll | ( | ) |
Remove all strings.
void Dragengine.Scenery.ECPStringList.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.