|
Drag[en]gine Script Module DragonScript 1.35
|
Shape list element class property for use with XML loading. More...
Public Member Functions | |
| void | copyValue (ElementClass elementClass, ElementClassProperty property) |
| Copy value from another element class property of the same type. | |
| CodecPropertyString | getCodec () |
| Coded used to decode shape string. | |
| ShapeList | getShapeList () |
| Shape list. | |
| ShapeList | getShapeList (StubWithProperties stub) |
| Shape list modified by stub property if present. | |
| ShapeList | getShapeList (StubWithProperties stub, String name) |
| Shape list modified by stub property if present. | |
| String | getShapeListString () |
| Shape list string. | |
| ECPShapeList | new (String name, CodecPropertyString codec) |
| Create property. | |
| ECPShapeList | new (String name, CodecPropertyString codec, ShapeList shapeList) |
| Create property with initial path. | |
| void | setShapeList (ShapeList shape) |
| Set shape. | |
| void | setShapeListFromString (String string) |
| Set shape list from shape string. | |
| 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. | |
| ElementClassProperty | new (String name) |
| Create property. | |
| void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
| Preload resources if supported. | |
Shape list element class property for use with XML loading.
Shape list is stored as ShapeList instance. From XML the shape list is read using an encoded string decoded using CodecPropertyString.
| void Dragengine.Scenery.ECPShapeList.copyValue | ( | ElementClass | elementClass, |
| ElementClassProperty | property ) |
Copy value from another element class property of the same type.
References setShapeListFromString(), and setValue().
Referenced by getShapeList().
| CodecPropertyString Dragengine.Scenery.ECPShapeList.getCodec | ( | ) |
Coded used to decode shape string.
Referenced by setShapeList().
| ShapeList Dragengine.Scenery.ECPShapeList.getShapeList | ( | ) |
Shape list.
Referenced by getShapeList(), and getShapeListString().
| ShapeList Dragengine.Scenery.ECPShapeList.getShapeList | ( | StubWithProperties | stub | ) |
Shape list modified by stub property if present.
If named stub property is not present the stored shape list is returned. If the named stub property is present it is decoded using the stored decoder and the result returned.
Uses the stored property name as stub property name.
References copyValue(), and new().
| ShapeList Dragengine.Scenery.ECPShapeList.getShapeList | ( | StubWithProperties | stub, |
| String | name ) |
Shape list modified by stub property if present.
If named stub property is not present the stored shape list is returned. If the named stub property is present it is decoded using the stored decoder and the result returned.
References getShapeList().
| String Dragengine.Scenery.ECPShapeList.getShapeListString | ( | ) |
| ECPShapeList Dragengine.Scenery.ECPShapeList.new | ( | String | name, |
| CodecPropertyString | codec ) |
| ECPShapeList Dragengine.Scenery.ECPShapeList.new | ( | String | name, |
| CodecPropertyString | codec, | ||
| ShapeList | shapeList ) |
Create property with initial path.
References new().
| void Dragengine.Scenery.ECPShapeList.setShapeList | ( | ShapeList | shape | ) |
| void Dragengine.Scenery.ECPShapeList.setShapeListFromString | ( | String | string | ) |
| void Dragengine.Scenery.ECPShapeList.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References getShapeListString().
Referenced by copyValue().