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