Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECPRectAreaMap Class Reference

Map of rect area values class property for use with XML loading. More...

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

Public Member Functions

void forEach (Block ablock)
 Visit rect areas using block. More...
 
RectArea getAt (String name)
 RectArea with String or null if not found. More...
 
int getCount ()
 Number of rect areas. More...
 
Array getNames ()
 Array of String names. More...
 
ECPRectAreaMap new (String name)
 Create property. More...
 
void removeAll ()
 Remove all react areas. More...
 
void setAt (String name, RectArea area)
 Add or replace react area with name. 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

Map of rect area values class property for use with XML loading.

Similar to ECPRectAreaList but uses a Dictionary mapping RectArea to String.

Member Function Documentation

◆ forEach()

void Dragengine.Scenery.ECPRectAreaMap.forEach ( Block  ablock)

Visit rect areas using block.

Block receives parameters String name and RectArea area.

◆ getAt()

RectArea Dragengine.Scenery.ECPRectAreaMap.getAt ( String  name)

RectArea with String or null if not found.

◆ getCount()

int Dragengine.Scenery.ECPRectAreaMap.getCount ( )

Number of rect areas.

◆ getNames()

Array Dragengine.Scenery.ECPRectAreaMap.getNames ( )

Array of String names.

◆ new()

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

Create property.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ removeAll()

void Dragengine.Scenery.ECPRectAreaMap.removeAll ( )

Remove all react areas.

◆ setAt()

void Dragengine.Scenery.ECPRectAreaMap.setAt ( String  name,
RectArea  area 
)

Add or replace react area with name.

◆ setValue()

void Dragengine.Scenery.ECPRectAreaMap.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: