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

List of behavior factories. More...

Inheritance diagram for Dragengine.Scenery.BehaviorFactoryList:

Public Member Functions

void add (BehaviorFactory factory)
 Add factory.
void addAll (BehaviorFactoryList list)
 Add all factories from list.
void addReplace (BehaviorFactory factory)
 Add factory replacing duplicate if present.
BehaviorFactory find (Block ablock)
 Find factory using block.
void forEach (Block ablock)
 Visit factories using block.
int getCount ()
 Count of factories.
BehaviorFactory getWithId (String id)
 Factory with identifier or null if absent.
bool hasWithId (String id)
 Factory with identifier is present.
BehaviorFactoryList new ()
 Create factory list.
BehaviorFactoryList new (BehaviorFactoryList list)
 Create copy of factory list.
void removeAll ()
 Remove all factories.

Public Attributes

Dictionary pFactories

Detailed Description

List of behavior factories.

Version
1.25

Behavior factories allow generic BehaviorElementClass to be created using XML element class files (*.deeclass) where not only element class properties can be defined but also behaviors added.

Member Function Documentation

◆ add()

void Dragengine.Scenery.BehaviorFactoryList.add ( BehaviorFactory factory)

Add factory.

References getWithId(), and pFactories.

Referenced by removeAll().

◆ addAll()

void Dragengine.Scenery.BehaviorFactoryList.addAll ( BehaviorFactoryList list)

Add all factories from list.

References pFactories.

Referenced by find().

◆ addReplace()

void Dragengine.Scenery.BehaviorFactoryList.addReplace ( BehaviorFactory factory)

Add factory replacing duplicate if present.

References hasWithId().

Referenced by forEach().

◆ find()

BehaviorFactory Dragengine.Scenery.BehaviorFactoryList.find ( Block ablock)

Find factory using block.

Block parameter BehaviorFactory and returns true if found.

References addAll(), find(), forEach(), pFactories, and removeAll().

Referenced by find().

◆ forEach()

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

Visit factories using block.

Block parameter BehaviorFactory.

References addReplace(), and pFactories.

Referenced by find().

◆ getCount()

int Dragengine.Scenery.BehaviorFactoryList.getCount ( )

Count of factories.

Referenced by getWithId().

◆ getWithId()

BehaviorFactory Dragengine.Scenery.BehaviorFactoryList.getWithId ( String id)

Factory with identifier or null if absent.

References getCount(), and pFactories.

Referenced by add().

◆ hasWithId()

bool Dragengine.Scenery.BehaviorFactoryList.hasWithId ( String id)

Factory with identifier is present.

Referenced by addReplace().

◆ new() [1/2]

BehaviorFactoryList Dragengine.Scenery.BehaviorFactoryList.new ( )

Create factory list.

References new(), and pFactories.

Referenced by new().

◆ new() [2/2]

BehaviorFactoryList Dragengine.Scenery.BehaviorFactoryList.new ( BehaviorFactoryList list)

Create copy of factory list.

References pFactories.

◆ removeAll()

void Dragengine.Scenery.BehaviorFactoryList.removeAll ( )

Remove all factories.

References add(), and pFactories.

Referenced by find().

Member Data Documentation

◆ pFactories

Dictionary Dragengine.Scenery.BehaviorFactoryList.pFactories

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