|
Drag[en]gine Script Module DragonScript 1.35
|
List of string values class property for use with XML loading. More...
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. | |
List of string values class property for use with XML loading.
| void Dragengine.Scenery.ECPStringList.add | ( | String | string | ) |
| void Dragengine.Scenery.ECPStringList.forEach | ( | Block | ablock | ) |
For each string with block with String as parameter.
References has().
Referenced by getList(), and setValue().
| String Dragengine.Scenery.ECPStringList.getAt | ( | int | index | ) |
| int Dragengine.Scenery.ECPStringList.getCount | ( | ) |
| 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.
References add(), forEach(), getList(), new(), removeAll(), and setValue().
Referenced by getList().
| String Dragengine.Scenery.ECPStringList.getRandom | ( | ) |
| bool Dragengine.Scenery.ECPStringList.has | ( | String | string | ) |
String is present.
Referenced by forEach(), and removeAll().
| int Dragengine.Scenery.ECPStringList.indexOf | ( | String | string | ) |
| ECPStringList Dragengine.Scenery.ECPStringList.new | ( | String | name | ) |
| void Dragengine.Scenery.ECPStringList.removeAll | ( | ) |
| 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().