Drag[en]gine Script Module DragonScript  1.23
Dragengine.Utils.AnchoredElementList Class Reference

List of anchored elements. More...

Inheritance diagram for Dragengine.Utils.AnchoredElementList:

Public Member Functions

void add (StringID id, Element element)
 Add anchored element. More...
 
void dispose ()
 Dispose of list. More...
 
Element find (Block ablock)
 Find anchored elements with block. More...
 
void forEach (Block ablock)
 Visit anchored elements with block with parameter Element. More...
 
Element getAt (StringID id)
 Anchored element with identifier or null if absent. More...
 
int getCount ()
 Number of anchored elements. More...
 
bool has (StringID id)
 Anchored element is present. More...
 
AnchoredElementList new ()
 Create anchored element list. More...
 
void remove (StringID id)
 Remove anchored element. More...
 
void removeAll ()
 Remove all anchored elements. More...
 

Public Attributes

Dictionary pElements
 

Detailed Description

List of anchored elements.

Allows registering Element instances using a unique name for example for use with conversations where it is not convenient to locate elements using their UniqueID.

Member Function Documentation

◆ add()

void Dragengine.Utils.AnchoredElementList.add ( StringID  id,
Element  element 
)

Add anchored element.

◆ dispose()

void Dragengine.Utils.AnchoredElementList.dispose ( )

Dispose of list.

◆ find()

Element Dragengine.Utils.AnchoredElementList.find ( Block  ablock)

Find anchored elements with block.

Block is called with arguments StringID (identifier) and Element. Block has to return true if the element has been found.

◆ forEach()

void Dragengine.Utils.AnchoredElementList.forEach ( Block  ablock)

Visit anchored elements with block with parameter Element.

◆ getAt()

Element Dragengine.Utils.AnchoredElementList.getAt ( StringID  id)

Anchored element with identifier or null if absent.

◆ getCount()

int Dragengine.Utils.AnchoredElementList.getCount ( )

Number of anchored elements.

◆ has()

bool Dragengine.Utils.AnchoredElementList.has ( StringID  id)

Anchored element is present.

◆ new()

AnchoredElementList Dragengine.Utils.AnchoredElementList.new ( )

Create anchored element list.

◆ remove()

void Dragengine.Utils.AnchoredElementList.remove ( StringID  id)

Remove anchored element.

◆ removeAll()

void Dragengine.Utils.AnchoredElementList.removeAll ( )

Remove all anchored elements.

Member Data Documentation

◆ pElements

Dictionary Dragengine.Utils.AnchoredElementList.pElements

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