|
Drag[en]gine Script Module DragonScript 1.35
|
List of string identifier values class property for use with XML loading. More...
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. | |
List of string identifier values class property for use with XML loading.
| void Dragengine.Scenery.ECPStringIDList.add | ( | StringID | string | ) |
Add string identifier.
Referenced by getList().
| void Dragengine.Scenery.ECPStringIDList.forEach | ( | Block | ablock | ) |
For each string identifier with block with String as parameter.
Referenced by getList(), and setValue().
| StringID Dragengine.Scenery.ECPStringIDList.getAt | ( | int | index | ) |
| int Dragengine.Scenery.ECPStringIDList.getCount | ( | ) |
Number of string identifiers.
References getCount().
Referenced by getAt(), getCount(), and removeAll().
| 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.
References add(), forEach(), getList(), new(), removeAll(), and setValue().
Referenced by getList().
| StringID Dragengine.Scenery.ECPStringIDList.getRandom | ( | ) |
Get random string identifier or null if no string identifiers are present.
References getAt().
Referenced by removeAll().
| ECPStringIDList Dragengine.Scenery.ECPStringIDList.new | ( | String | name | ) |
| void Dragengine.Scenery.ECPStringIDList.removeAll | ( | ) |
Remove all string identifiers.
References getCount(), and getRandom().
Referenced by getList(), and 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().