Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECPShapeList Class Reference

Shape list element class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPShapeList:
Dragengine.Scenery.ElementClassProperty

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.

Detailed Description

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.

Member Function Documentation

◆ copyValue()

void Dragengine.Scenery.ECPShapeList.copyValue ( ElementClass elementClass,
ElementClassProperty property )

Copy value from another element class property of the same type.

Version
1.17

References setShapeListFromString(), and setValue().

Referenced by getShapeList().

◆ getCodec()

CodecPropertyString Dragengine.Scenery.ECPShapeList.getCodec ( )

Coded used to decode shape string.

Referenced by setShapeList().

◆ getShapeList() [1/3]

ShapeList Dragengine.Scenery.ECPShapeList.getShapeList ( )

Shape list.

Referenced by getShapeList(), and getShapeListString().

◆ getShapeList() [2/3]

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().

◆ getShapeList() [3/3]

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().

◆ getShapeListString()

String Dragengine.Scenery.ECPShapeList.getShapeListString ( )

Shape list string.

References getShapeList().

Referenced by setValue().

◆ new() [1/2]

ECPShapeList Dragengine.Scenery.ECPShapeList.new ( String name,
CodecPropertyString codec )

Create property.

References new().

Referenced by getShapeList(), new(), and new().

◆ new() [2/2]

ECPShapeList Dragengine.Scenery.ECPShapeList.new ( String name,
CodecPropertyString codec,
ShapeList shapeList )

Create property with initial path.

References new().

◆ setShapeList()

void Dragengine.Scenery.ECPShapeList.setShapeList ( ShapeList shape)

Set shape.

References getCodec().

Referenced by setShapeListFromString().

◆ setShapeListFromString()

void Dragengine.Scenery.ECPShapeList.setShapeListFromString ( String string)

Set shape list from shape string.

References setShapeList().

Referenced by copyValue().

◆ setValue()

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().


The documentation for this class was generated from the following file: