Drag[en]gine Script Module DragonScript
1.23
|
Vector2 element class property for use with XML loading. More...
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... | |
void Dragengine.Scenery.ECPVector2.copyValue | ( | ElementClass | elementClass, |
ElementClassProperty | property | ||
) |
Copy value from another element class property of the same type.
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:
ECPVector2 Dragengine.Scenery.ECPVector2.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
ECPVector2 Dragengine.Scenery.ECPVector2.new | ( | String | name, |
Vector2 | vector | ||
) |
Create property with initial path.
void Dragengine.Scenery.ECPVector2.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
void Dragengine.Scenery.ECPVector2.setVector2 | ( | Vector2 | vector | ) |
Set vector.