|
Drag[en]gine Script Module DragonScript 1.35
|
Stores definition of an animator. More...
Public Member Functions | |
| void | addBone (String bone) |
| Add bone. | |
| void | addController (ADController controller) |
| Add controller. | |
| void | addLink (ADLink link) |
| Add link. | |
| void | addRule (ADRule rule) |
| Add rule. | |
| void | addVertexPositionSet (String bone) |
| Add bone. | |
| void | buildAnimator (Animator animator) |
| Build animator. | |
| void | forEachController (Block ablock) |
| Visit controllers using block. | |
| void | forEachLink (Block ablock) |
| Visit links using block. | |
| void | forEachRule (Block ablock) |
| Visit rules using block. | |
| Animation | getAnimation () |
| Animation. | |
| String | getBoneAt (int index) |
| Bone at index. | |
| int | getBoneCount () |
| Count of bones. | |
| ADController | getControllerAt (int index) |
| Controller at index. | |
| int | getControllerCount () |
| Count of controllers. | |
| ADLink | getLinkAt (int index) |
| Link at index. | |
| int | getLinkCount () |
| ADRule | getRuleAt (int index) |
| Rule at index. | |
| int | getRuleCount () |
| Count of rules. | |
| String | getVertexPositionSetAt (int index) |
| VertexPositionSet at index. | |
| int | getVertexPositionSetCount () |
| Count of bones. | |
| int | indexOfController (ADController controller) |
| Index of controller or -1 if absent. | |
| int | indexOfLink (ADLink link) |
| Index of link or -1 if absent. | |
| int | indexOfRule (ADRule rule) |
| Index of rule or -1 if absent. | |
| AnimatorDefinition | new (AnimatorDefinition definition) |
| Create deep copy of animator definition. | |
| AnimatorDefinition | new (String pathFile) |
| Create animator definition. | |
| void | setAnimation (Animation animation) |
| Set animation. | |
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.
| void Dragengine.Animators.AnimatorDefinition.addBone | ( | String | bone | ) |
| void Dragengine.Animators.AnimatorDefinition.addController | ( | ADController | controller | ) |
Add controller.
Referenced by forEachRule().
| void Dragengine.Animators.AnimatorDefinition.addLink | ( | ADLink | link | ) |
| void Dragengine.Animators.AnimatorDefinition.addRule | ( | ADRule | rule | ) |
| void Dragengine.Animators.AnimatorDefinition.addVertexPositionSet | ( | String | bone | ) |
| void Dragengine.Animators.AnimatorDefinition.buildAnimator | ( | Animator | animator | ) |
Build animator.
References addBone(), addLink(), addRule(), addVertexPositionSet(), buildAnimator(), forEachLink(), forEachRule(), getBoneAt(), getBoneCount(), getRuleAt(), getRuleCount(), getVertexPositionSetAt(), getVertexPositionSetCount(), and indexOfRule().
Referenced by buildAnimator().
| void Dragengine.Animators.AnimatorDefinition.forEachController | ( | Block | ablock | ) |
| void Dragengine.Animators.AnimatorDefinition.forEachLink | ( | Block | ablock | ) |
| void Dragengine.Animators.AnimatorDefinition.forEachRule | ( | Block | ablock | ) |
| Animation Dragengine.Animators.AnimatorDefinition.getAnimation | ( | ) |
| String Dragengine.Animators.AnimatorDefinition.getBoneAt | ( | int | index | ) |
Bone at index.
Referenced by buildAnimator().
| int Dragengine.Animators.AnimatorDefinition.getBoneCount | ( | ) |
Count of bones.
Referenced by buildAnimator().
| ADController Dragengine.Animators.AnimatorDefinition.getControllerAt | ( | int | index | ) |
Controller at index.
Referenced by getRuleAt().
| int Dragengine.Animators.AnimatorDefinition.getControllerCount | ( | ) |
Count of controllers.
Referenced by getRuleCount().
| ADLink Dragengine.Animators.AnimatorDefinition.getLinkAt | ( | int | index | ) |
Link at index.
Referenced by getVertexPositionSetAt().
| int Dragengine.Animators.AnimatorDefinition.getLinkCount | ( | ) |
\briec Count of links.
Referenced by getVertexPositionSetCount().
| ADRule Dragengine.Animators.AnimatorDefinition.getRuleAt | ( | int | index | ) |
| int Dragengine.Animators.AnimatorDefinition.getRuleCount | ( | ) |
| String Dragengine.Animators.AnimatorDefinition.getVertexPositionSetAt | ( | int | index | ) |
| int Dragengine.Animators.AnimatorDefinition.getVertexPositionSetCount | ( | ) |
| int Dragengine.Animators.AnimatorDefinition.indexOfController | ( | ADController | controller | ) |
| int Dragengine.Animators.AnimatorDefinition.indexOfLink | ( | ADLink | link | ) |
| int Dragengine.Animators.AnimatorDefinition.indexOfRule | ( | ADRule | rule | ) |
| AnimatorDefinition Dragengine.Animators.AnimatorDefinition.new | ( | AnimatorDefinition | definition | ) |
Create deep copy of animator definition.
| AnimatorDefinition Dragengine.Animators.AnimatorDefinition.new | ( | String | pathFile | ) |
| void Dragengine.Animators.AnimatorDefinition.setAnimation | ( | Animation | animation | ) |
Set animation.
Referenced by forEachLink().