Drag[en]gine Script Module DragonScript
1.21
|
Conversation gesture playback. More...
Classes | |
class | Gesture |
Gesture. More... | |
Public Member Functions | |
void | addGesture (StringID animatorID, bool hold, ConversationStrip strip) |
Add gesture. More... | |
void | addGestureFromNow (StringID animatorID, bool hold, ConversationStrip strip) |
Add gesture at playback position replacing gestures after pause time. More... | |
void | applyAnimation () |
Apply animation. More... | |
AnimatorInstance | getAnimatorInstance () |
Animator instance. More... | |
AnimatorController | getControllerFadeIn () |
Fade in animator controllers. More... | |
AnimatorController | getControllerFadeOut () |
Fade out animator controllers. More... | |
AnimatorController | getControllerPlayback () |
Playback animator controllers. More... | |
AnimatorController | getControllerProgress () |
Progress animator controllers. More... | |
AnimatorController | getControllerVariation () |
Variation animator controllers. More... | |
float | getElapsed () |
Elapsed time. More... | |
Gesture | getGestureAt (int position) |
Gesture by position. More... | |
int | getGestureCount () |
Number of gestures. More... | |
String | getNameControllerFadeIn () |
Fade in controller name. More... | |
String | getNameControllerFadeOut () |
Fade out controller name. More... | |
String | getNameControllerPlayback () |
Playback controller name. More... | |
String | getNameControllerProgress () |
Progress controller name. More... | |
String | getNameControllerVariation () |
Variation controller name. More... | |
int | getPosition () |
Playback position. More... | |
float | getRemainingGestureTime () |
Remaining playback time of current gesture. More... | |
bool | getRunning () |
Playback is running. More... | |
bool | isLastGestureRunning () |
Last gesture is playing back. More... | |
ConversationGesturePlayback | new () |
Create gesture playback. More... | |
void | onFinished () |
Finished playing back the gestures. Hook for subclasses. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read from file. More... | |
void | removeAllGestures () |
Remove all gestures. More... | |
void | setNameControllerFadeIn (String name) |
Set fade in controller name. More... | |
void | setNameControllerFadeOut (String name) |
Set fade out controller name. More... | |
void | setNameControllerPlayback (String name) |
Set playback controller name. More... | |
void | setNameControllerProgress (String name) |
Set progress controller name. More... | |
void | setNameControllerVariation (String name) |
Set variation controller name. More... | |
void | update (ConversationActor actor, AnimatorInstance poseAnimatorInstance, float elapsed) |
Update playback. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write to file. More... | |
Protected Member Functions | |
void | findControllers (ConversationActor actor) |
Find animator controllers after animator changed. More... | |
void | initControllers (ConversationActor actor, float startTime, float endTime) |
Initialize controllers after activating a new gesture. More... | |
void | initNextGesture (ConversationActor actor) |
Init next gesture to play. More... | |
void | updateControllers (ConversationActor actor, float elapsed, float endTime) |
Update controllers. More... | |
Conversation gesture playback.
void Dragengine.ConversationSystem.ConversationGesturePlayback.addGesture | ( | StringID | animatorID, |
bool | hold, | ||
ConversationStrip | strip | ||
) |
Add gesture.
void Dragengine.ConversationSystem.ConversationGesturePlayback.addGestureFromNow | ( | StringID | animatorID, |
bool | hold, | ||
ConversationStrip | strip | ||
) |
Add gesture at playback position replacing gestures after pause time.
void Dragengine.ConversationSystem.ConversationGesturePlayback.applyAnimation | ( | ) |
Apply animation.
Called after update() to apply animation. Can do nothing if no change has been done.
|
protected |
Find animator controllers after animator changed.
AnimatorInstance Dragengine.ConversationSystem.ConversationGesturePlayback.getAnimatorInstance | ( | ) |
Animator instance.
AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerFadeIn | ( | ) |
Fade in animator controllers.
AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerFadeOut | ( | ) |
Fade out animator controllers.
AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerPlayback | ( | ) |
Playback animator controllers.
AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerProgress | ( | ) |
Progress animator controllers.
AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerVariation | ( | ) |
Variation animator controllers.
float Dragengine.ConversationSystem.ConversationGesturePlayback.getElapsed | ( | ) |
Elapsed time.
Gesture Dragengine.ConversationSystem.ConversationGesturePlayback.getGestureAt | ( | int | position | ) |
Gesture by position.
int Dragengine.ConversationSystem.ConversationGesturePlayback.getGestureCount | ( | ) |
Number of gestures.
String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerFadeIn | ( | ) |
Fade in controller name.
String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerFadeOut | ( | ) |
Fade out controller name.
String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerPlayback | ( | ) |
Playback controller name.
String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerProgress | ( | ) |
Progress controller name.
String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerVariation | ( | ) |
Variation controller name.
int Dragengine.ConversationSystem.ConversationGesturePlayback.getPosition | ( | ) |
Playback position.
float Dragengine.ConversationSystem.ConversationGesturePlayback.getRemainingGestureTime | ( | ) |
Remaining playback time of current gesture.
If playback is no running 0 is returned. Returned playback includes pause if not elapsed. If playing back gesture is held not elapsed pause time is returned (duration 0).
bool Dragengine.ConversationSystem.ConversationGesturePlayback.getRunning | ( | ) |
Playback is running.
|
protected |
Initialize controllers after activating a new gesture.
|
protected |
Init next gesture to play.
bool Dragengine.ConversationSystem.ConversationGesturePlayback.isLastGestureRunning | ( | ) |
Last gesture is playing back.
Returns true if getRunning() is true and getPosition() is getGestureCount() - 1.
ConversationGesturePlayback Dragengine.ConversationSystem.ConversationGesturePlayback.new | ( | ) |
Create gesture playback.
void Dragengine.ConversationSystem.ConversationGesturePlayback.onFinished | ( | ) |
Finished playing back the gestures. Hook for subclasses.
void Dragengine.ConversationSystem.ConversationGesturePlayback.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read from file.
void Dragengine.ConversationSystem.ConversationGesturePlayback.removeAllGestures | ( | ) |
Remove all gestures.
void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerFadeIn | ( | String | name | ) |
Set fade in controller name.
void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerFadeOut | ( | String | name | ) |
Set fade out controller name.
void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerPlayback | ( | String | name | ) |
Set playback controller name.
void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerProgress | ( | String | name | ) |
Set progress controller name.
void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerVariation | ( | String | name | ) |
Set variation controller name.
void Dragengine.ConversationSystem.ConversationGesturePlayback.update | ( | ConversationActor | actor, |
AnimatorInstance | poseAnimatorInstance, | ||
float | elapsed | ||
) |
Update playback.
This updates the playback and updates animator instances if required. This does not apply the animation yet to allow proper use of state capturing.
|
protected |
Update controllers.
void Dragengine.ConversationSystem.ConversationGesturePlayback.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write to file.