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

Interface for factories supporting creating game world behaviors. More...

Inheritance diagram for Dragengine.Scenery.GWBehaviorFactory:
Dragengine.Scenery.DefaultGWBehaviorFactory

Public Member Functions

GWBehavior addBehavior (GameWorld gameWorld, String id)
 Add behavior to game world.
String factoryId ()
 Unique identifier of factory.

Detailed Description

Interface for factories supporting creating game world behaviors.

Version
1.35

Member Function Documentation

◆ addBehavior()

GWBehavior Dragengine.Scenery.GWBehaviorFactory.addBehavior ( GameWorld gameWorld,
String id )

Add behavior to game world.

Parameters
gameWorldGame world to add behavior to.
idIdentifier to use. Has to be unique amongst same type behaviors.

Referenced by factoryId().

◆ factoryId()

String Dragengine.Scenery.GWBehaviorFactory.factoryId ( )

Unique identifier of factory.

Should be the class name of the behavior. Factory identifiers are case sensitive.

Implemented in Dragengine.Scenery.DefaultGWBehaviorFactory.

References addBehavior(), and factoryId().

Referenced by factoryId().


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