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

Box area list element class property for use with XML loading. More...

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

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type.
BoxAreaList getList ()
 Box area list.
ECPBoxAreaList new (String name)
 Create property.
ECPBoxAreaList new (String name, BoxAreaList boxAreaList)
 Create property with initial value.
void setList (BoxAreaList boxAreaList)
 Set box area list.
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.

Detailed Description

Box area list element class property for use with XML loading.

Box area list is stored as BoxAreaList instance. From XML the box area list is read using a list type property string. Each list entry is a map defining one box area. The following example defines a box area list with one box area. The box has a position of (2,1,0), size of (3.6,2.4,0.8) and a rotation of (0,20,0) degrees.

<list name='propertyName'>
<map>
<vector key='position' x='2' y='1' z='0'/>
<vector key='extends' x='1.8' y='1.2' z='0.4'/>
<vector key='rotation' x='0' y='20' z='0'/>
</map>
</list>

Member Function Documentation

◆ copyValue()

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

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

Version
1.17

References new(), and setList().

Referenced by setValue().

◆ getList()

BoxAreaList Dragengine.Scenery.ECPBoxAreaList.getList ( )

Box area list.

Referenced by setList().

◆ new() [1/2]

ECPBoxAreaList Dragengine.Scenery.ECPBoxAreaList.new ( String name)

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new().

Referenced by copyValue(), new(), new(), and setValue().

◆ new() [2/2]

ECPBoxAreaList Dragengine.Scenery.ECPBoxAreaList.new ( String name,
BoxAreaList boxAreaList )

Create property with initial value.

References new().

◆ setList()

void Dragengine.Scenery.ECPBoxAreaList.setList ( BoxAreaList boxAreaList)

Set box area list.

References getList().

Referenced by copyValue().

◆ setValue()

void Dragengine.Scenery.ECPBoxAreaList.setValue ( Object value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References copyValue(), new(), and setValue().

Referenced by setValue().


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