Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECPVector2 Class Reference

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

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

Public Member Functions

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

Vector2 element class property for use with XML loading.

Vector2 is stored as Vector2 instance.

Member Function Documentation

◆ copyValue()

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

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

Version
1.17

◆ getVector2() [1/2]

Vector2 Dragengine.Scenery.ECPVector2.getVector2 ( )

◆ getVector2() [2/2]

Vector2 Dragengine.Scenery.ECPVector2.getVector2 ( 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" and "y" are floating point values:

  • "x y": Vector2.new(x, x)

◆ new() [1/2]

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ new() [2/2]

ECPVector2 Dragengine.Scenery.ECPVector2.new ( String  name,
Vector2  vector 
)

Create property with initial path.

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ setVector2()

void Dragengine.Scenery.ECPVector2.setVector2 ( Vector2  vector)

Set vector.


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