Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
Vector2 getVector2 ()
 Vector2.
Vector2 getVector2 (StubWithProperties stub, CodecPropertyString codec)
 Color modified by stub property if present.
ECPVector2 new (String name)
 Create property.
ECPVector2 new (String name, Vector2 vector)
 Create property with initial path.
void setValue (Object value)
 Set value of property from XML decoded value.
void setVector2 (Vector2 vector)
 Set vector.
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

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

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

Referenced by copyValue().

◆ getVector2() [1/2]

Vector2 Dragengine.Scenery.ECPVector2.getVector2 ( )

Vector2.

Referenced by getVector2(), and setVector2().

◆ 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)

References getVector2().

◆ new() [1/2]

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new().

Referenced by new(), and new().

◆ new() [2/2]

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

Create property with initial path.

References new().

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setVector2().

Referenced by copyValue().

◆ setVector2()

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

Set vector.

References getVector2().

Referenced by copyValue(), and setValue().


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