Drag[en]gine Script Module DragonScript  1.21
Dragengine.Scenery.ECPVector Class Reference

Vector element class property for use with XML loading. More...

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

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type. More...
 
Vector getVector ()
 Vector. More...
 
Vector getVector (StubWithProperties stub, CodecPropertyString codec)
 Color modified by stub property if present. More...
 
ECPVector new (String name)
 Create property. More...
 
ECPVector new (String name, Vector vector)
 Create property with initial path. More...
 
void setValue (Object value)
 Set value of property from XML decoded value. More...
 
void setVector (Vector vector)
 Set vector. 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

Vector element class property for use with XML loading.

Vector is stored as Vector instance.

Member Function Documentation

◆ copyValue()

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

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

Version
1.17

◆ getVector() [1/2]

Vector Dragengine.Scenery.ECPVector.getVector ( )

◆ getVector() [2/2]

Vector Dragengine.Scenery.ECPVector.getVector ( StubWithProperties  stub,
CodecPropertyString  codec 
)

Color modified by stub property if present.

If named stub property is not present or empty string the stored color is returned. If the named stub property is present it is decoded using codec.

The following property value formats are understood where "x", "y" and "z" are floating point values:

  • "x y z": Vector.new(x, x, z)

◆ new() [1/2]

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ new() [2/2]

ECPVector Dragengine.Scenery.ECPVector.new ( String  name,
Vector  vector 
)

Create property with initial path.

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ setVector()

void Dragengine.Scenery.ECPVector.setVector ( Vector  vector)

Set vector.


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