Drag[en]gine Script Module DragonScript  1.21
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. More...
 
BoxAreaList getList ()
 Box area list. More...
 
ECPBoxAreaList new (String name)
 Create property. More...
 
ECPBoxAreaList new (String name, BoxAreaList boxAreaList)
 Create property with initial value. More...
 
void setList (BoxAreaList boxAreaList)
 Set box area list. More...
 
void setValue (Object value)
 Set value of property from XML decoded value. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
void dispose ()
 Dispose of element class property to break reference loops. More...
 
String getName ()
 Name. More...
 
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems. More...
 
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported. More...
 

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

◆ getList()

BoxAreaList Dragengine.Scenery.ECPBoxAreaList.getList ( )

Box area list.

◆ new() [1/2]

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ new() [2/2]

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

Create property with initial value.

◆ setList()

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

Set box area list.

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.


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