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