Drag[en]gine Script Module DragonScript  1.21
Dragengine.Animators.AnimatorDefinition Class Reference

Stores definition of an animator. More...

Inheritance diagram for Dragengine.Animators.AnimatorDefinition:

Public Member Functions

void addBone (String bone)
 Add bone. More...
 
void addController (ADController controller)
 Add controller. More...
 
void addLink (ADLink link)
 Add link. More...
 
void addRule (ADRule rule)
 Add rule. More...
 
void addVertexPositionSet (String bone)
 Add bone. More...
 
void buildAnimator (Animator animator)
 Build animator. More...
 
void forEachController (Block ablock)
 Visit controllers using block. More...
 
void forEachLink (Block ablock)
 Visit links using block. More...
 
void forEachRule (Block ablock)
 Visit rules using block. More...
 
Animation getAnimation ()
 Animation. More...
 
String getBoneAt (int index)
 Bone at index. More...
 
int getBoneCount ()
 Count of bones. More...
 
ADController getControllerAt (int index)
 Controller at index. More...
 
int getControllerCount ()
 Count of controllers. More...
 
ADLink getLinkAt (int index)
 Link at index. More...
 
int getLinkCount ()
 
ADRule getRuleAt (int index)
 Rule at index. More...
 
int getRuleCount ()
 Count of rules. More...
 
String getVertexPositionSetAt (int index)
 VertexPositionSet at index. More...
 
int getVertexPositionSetCount ()
 Count of bones. More...
 
int indexOfController (ADController controller)
 Index of controller or -1 if absent. More...
 
int indexOfLink (ADLink link)
 Index of link or -1 if absent. More...
 
int indexOfRule (ADRule rule)
 Index of rule or -1 if absent. More...
 
AnimatorDefinition new (AnimatorDefinition definition)
 Create deep copy of animator definition. More...
 
AnimatorDefinition new (String pathFile)
 Create animator definition. More...
 
void setAnimation (Animation animation)
 Set animation. More...
 

Detailed Description

Stores definition of an animator.

Once defined an animator can be updated using the stored definition easily. Avoids storing real animators as often multiple animator definitions have to be loaded at the beginning of a gaming session.

Member Function Documentation

◆ addBone()

void Dragengine.Animators.AnimatorDefinition.addBone ( String  bone)

Add bone.

◆ addController()

void Dragengine.Animators.AnimatorDefinition.addController ( ADController  controller)

Add controller.

◆ addLink()

void Dragengine.Animators.AnimatorDefinition.addLink ( ADLink  link)

Add link.

◆ addRule()

void Dragengine.Animators.AnimatorDefinition.addRule ( ADRule  rule)

Add rule.

◆ addVertexPositionSet()

void Dragengine.Animators.AnimatorDefinition.addVertexPositionSet ( String  bone)

Add bone.

Version
1.17

◆ buildAnimator()

void Dragengine.Animators.AnimatorDefinition.buildAnimator ( Animator  animator)

Build animator.

◆ forEachController()

void Dragengine.Animators.AnimatorDefinition.forEachController ( Block  ablock)

Visit controllers using block.

Version
1.13

◆ forEachLink()

void Dragengine.Animators.AnimatorDefinition.forEachLink ( Block  ablock)

Visit links using block.

Version
1.13

◆ forEachRule()

void Dragengine.Animators.AnimatorDefinition.forEachRule ( Block  ablock)

Visit rules using block.

Version
1.13

◆ getAnimation()

Animation Dragengine.Animators.AnimatorDefinition.getAnimation ( )

Animation.

◆ getBoneAt()

String Dragengine.Animators.AnimatorDefinition.getBoneAt ( int  index)

Bone at index.

◆ getBoneCount()

int Dragengine.Animators.AnimatorDefinition.getBoneCount ( )

Count of bones.

◆ getControllerAt()

ADController Dragengine.Animators.AnimatorDefinition.getControllerAt ( int  index)

Controller at index.

◆ getControllerCount()

int Dragengine.Animators.AnimatorDefinition.getControllerCount ( )

Count of controllers.

◆ getLinkAt()

ADLink Dragengine.Animators.AnimatorDefinition.getLinkAt ( int  index)

Link at index.

◆ getLinkCount()

int Dragengine.Animators.AnimatorDefinition.getLinkCount ( )

\briec Count of links.

◆ getRuleAt()

ADRule Dragengine.Animators.AnimatorDefinition.getRuleAt ( int  index)

Rule at index.

◆ getRuleCount()

int Dragengine.Animators.AnimatorDefinition.getRuleCount ( )

Count of rules.

◆ getVertexPositionSetAt()

String Dragengine.Animators.AnimatorDefinition.getVertexPositionSetAt ( int  index)

VertexPositionSet at index.

Version
1.17

◆ getVertexPositionSetCount()

int Dragengine.Animators.AnimatorDefinition.getVertexPositionSetCount ( )

Count of bones.

Version
1.17

◆ indexOfController()

int Dragengine.Animators.AnimatorDefinition.indexOfController ( ADController  controller)

Index of controller or -1 if absent.

Version
1.13

◆ indexOfLink()

int Dragengine.Animators.AnimatorDefinition.indexOfLink ( ADLink  link)

Index of link or -1 if absent.

Version
1.13

◆ indexOfRule()

int Dragengine.Animators.AnimatorDefinition.indexOfRule ( ADRule  rule)

Index of rule or -1 if absent.

Version
1.13

◆ new() [1/2]

AnimatorDefinition Dragengine.Animators.AnimatorDefinition.new ( AnimatorDefinition  definition)

Create deep copy of animator definition.

Version
1.13

◆ new() [2/2]

AnimatorDefinition Dragengine.Animators.AnimatorDefinition.new ( String  pathFile)

Create animator definition.

◆ setAnimation()

void Dragengine.Animators.AnimatorDefinition.setAnimation ( Animation  animation)

Set animation.


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