Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
void dispose ()
 Dispose of list.
Element find (Block ablock)
 Find anchored elements with block.
void forEach (Block ablock)
 Visit anchored elements with block with parameter Element.
Element getAt (StringID id)
 Anchored element with identifier or null if absent.
int getCount ()
 Number of anchored elements.
bool has (StringID id)
 Anchored element is present.
AnchoredElementList new ()
 Create anchored element list.
void remove (StringID id)
 Remove anchored element.
void removeAll ()
 Remove all anchored elements.
void removeIfPresent (StringID id)
 Remove anchored element if present.

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.

References has(), and pElements.

Referenced by removeIfPresent().

◆ dispose()

void Dragengine.Utils.AnchoredElementList.dispose ( )

Dispose of list.

References dispose(), and removeAll().

Referenced by dispose().

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

References find(), forEach(), pElements, removeAll(), and removeIfPresent().

Referenced by find().

◆ forEach()

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

Visit anchored elements with block with parameter Element.

References pElements.

Referenced by find().

◆ getAt()

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

Anchored element with identifier or null if absent.

Referenced by remove().

◆ getCount()

int Dragengine.Utils.AnchoredElementList.getCount ( )

Number of anchored elements.

Referenced by has().

◆ has()

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

Anchored element is present.

References getCount(), and pElements.

Referenced by add().

◆ new()

AnchoredElementList Dragengine.Utils.AnchoredElementList.new ( )

Create anchored element list.

References new(), and pElements.

Referenced by new().

◆ remove()

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

Remove anchored element.

References getAt(), and pElements.

◆ removeAll()

void Dragengine.Utils.AnchoredElementList.removeAll ( )

Remove all anchored elements.

Referenced by dispose(), and find().

◆ removeIfPresent()

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

Remove anchored element if present.

Version
1.35

References add().

Referenced by find().

Member Data Documentation

◆ pElements

Dictionary Dragengine.Utils.AnchoredElementList.pElements

Referenced by add(), find(), forEach(), has(), new(), and remove().


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