Drag[en]gine Script Module DragonScript  1.23
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. More...
 
Point getPoint ()
 Point. More...
 
Point getPoint (StubWithProperties stub, CodecPropertyString codec)
 Color modified by stub property if present. More...
 
ECPPoint new (String name)
 Create property. More...
 
ECPPoint new (String name, Point point)
 Create property with initial path. More...
 
void setPoint (Point point)
 Set point. More...
 
void setValue (Object value)
 Set value of property from XML decoded value. 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

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

◆ getPoint() [1/2]

Point Dragengine.Scenery.ECPPoint.getPoint ( )

Point.

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

◆ new() [1/2]

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ new() [2/2]

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

Create property with initial path.

◆ setPoint()

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

Set point.

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.


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