Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECPPoint Class Reference

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

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

Public Member Functions

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

Point element class property for use with XML loading.

Point is stored as Point instance.

Member Function Documentation

◆ copyValue()

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

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

Version
1.17

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

Referenced by copyValue().

◆ getPoint() [1/2]

Point Dragengine.Scenery.ECPPoint.getPoint ( )

Point.

Referenced by getPoint(), and setPoint().

◆ getPoint() [2/2]

Point Dragengine.Scenery.ECPPoint.getPoint ( 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 integer values:

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

References getPoint().

◆ new() [1/2]

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References new().

Referenced by new(), and new().

◆ new() [2/2]

ECPPoint Dragengine.Scenery.ECPPoint.new ( String name,
Point point )

Create property with initial path.

References new().

◆ setPoint()

void Dragengine.Scenery.ECPPoint.setPoint ( Point point)

Set point.

References getPoint().

Referenced by copyValue(), and setValue().

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setPoint().

Referenced by copyValue().


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