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

Integer enumeration value element class property for use with XML loading. More...

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

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type.
Dictionary getMapping ()
 Mapping between strings and enumerations.
int getValue ()
 Value.
int getValue (StubWithProperties stub)
 Enumeration value modified by stub property if present.
ECPEnumerationInt new (String name, int value)
 Create property.
void setMapping (Dictionary mapping)
 Set mapping between strings and enumerations.
void setValue (int value)
 Set value.
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.
ElementClassProperty new (String name)
 Create property.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.

Detailed Description

Integer enumeration value element class property for use with XML loading.

Value is an integer value using a dictionary mapping string values to enumeration values.

Member Function Documentation

◆ copyValue()

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

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

Version
1.17

References setValue().

Referenced by getValue().

◆ getMapping()

Dictionary Dragengine.Scenery.ECPEnumerationInt.getMapping ( )

Mapping between strings and enumerations.

References setValue().

Referenced by setMapping().

◆ getValue() [1/2]

int Dragengine.Scenery.ECPEnumerationInt.getValue ( )

Value.

Referenced by getValue(), and setValue().

◆ getValue() [2/2]

int Dragengine.Scenery.ECPEnumerationInt.getValue ( StubWithProperties stub)

Enumeration value modified by stub property if present.

If named stub property is not present or empty string the stored enumeration value is returned. If the named stub property is present it is mapped against the mapping and the matching enumeration value returned. If no match is found an exception is thrown.

References copyValue(), and getValue().

◆ new()

ECPEnumerationInt Dragengine.Scenery.ECPEnumerationInt.new ( String name,
int value )

Create property.

References new().

Referenced by new().

◆ setMapping()

void Dragengine.Scenery.ECPEnumerationInt.setMapping ( Dictionary mapping)

Set mapping between strings and enumerations.

References getMapping().

Referenced by setValue().

◆ setValue() [1/2]

void Dragengine.Scenery.ECPEnumerationInt.setValue ( int value)

Set value.

References getValue().

Referenced by copyValue(), and getMapping().

◆ setValue() [2/2]

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setMapping().


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