Drag[en]gine Script Module DragonScript Script API
1.0
|
Public Member Functions | |
void | addBone (String bone) |
void | addTargetLink (ADRuleTargetLink targetLink) |
AnimatorRule | buildRule (Animator animator) |
void | debug (Console console) |
void | forEachTarget (Block ablock) |
Visit targets with a block. More... | |
float | getBlendFactor () |
int | getBlendMode () |
String | getBoneAt (int index) |
bool | getEnabled () |
String | getName () |
ADRuleTargetLink | getTargetLinkAt (int index) |
int | getTargetLinkCount () |
ADRule | new () |
void | setBlendFactor (float factor) |
void | setBlendMode (int mode) |
void | setEnabled (bool enabled) |
void | setName (String name) |
Protected Member Functions | |
String | debugCommon (String type) |
Definition of an animator rule. Once defined a rule can be added to an animator using the stored definition. This is the base rule class with the properties shared amongst all rule types.
void addBone | ( | String | bone | ) |
Adds a bone.
void addTargetLink | ( | ADRuleTargetLink | targetLink | ) |
Adds a target link.
AnimatorRule buildRule | ( | Animator | animator | ) |
Build engine animator rule using the stored definition.
void debug | ( | Console | console | ) |
|
protected |
void forEachTarget | ( | Block | ablock | ) |
Visit targets with a block.
float getBlendFactor | ( | ) |
Retrieves the blend factor.
int getBlendMode | ( | ) |
Retrieves the blend mode.
String getBoneAt | ( | int | index | ) |
Retrieves the bone at the given index.
bool getEnabled | ( | ) |
Determines if the rule is enabled.
String getName | ( | ) |
Retrieves the name of the rule.
ADRuleTargetLink getTargetLinkAt | ( | int | index | ) |
Retrieves the target link at the given index.
int getTargetLinkCount | ( | ) |
Retrieves the number of target links.
ADRule new | ( | ) |
Creates a new animation rule definition.
void setBlendFactor | ( | float | factor | ) |
Sets the blend factor.
void setBlendMode | ( | int | mode | ) |
Sets the blend mode.
void setEnabled | ( | bool | enabled | ) |
Sets if the rule is enabled.
void setName | ( | String | name | ) |
Sets the name of the rule.