Manages animation playback for a Tile, controlling animation cycles, frame timing, and raising events during the animation lifecycle.
More...
|
| Cycle | SetCurrentCycle (string cycleKey) |
| | Sets the current animation cycle using the specified cycle key.
|
| void | StartAnimation () |
| | Starts playing the current animation cycle. If no cycle is set, this method has no effect. Raises the Started event when the animation begins.
|
| void | StartAnimation (string cycleKey) |
| | Sets the current animation cycle and starts playing it.
|
| void | StopAnimation () |
| | Stops the current animation cycle. Raises the Stopped event and advances to the next cycle if one is configured. If the next cycle is configured to hide the tile on cycle end, the parent tile will be hidden.
|
| void | Dispose () |
| | Releases all event handlers and suppresses finalization. *** DO NOT CALL DIRECTLY! ***.
|
|
| Tile | Parent [get] |
| | Gets the tile that owns this animator.
|
| Cycle | CurrentCycle [get, set] |
| | Gets or sets the current animation cycle being played.
|
| bool | IsCycling [get, set] |
| | Gets or sets a value indicating whether the animation is currently cycling. Setting this property to true starts the animation; setting it to false stops it.
|
Manages animation playback for a Tile, controlling animation cycles, frame timing, and raising events during the animation lifecycle.
◆ Dispose()
| void Gondwana.Drawing.Animation.Animator.Dispose |
( |
| ) |
|
Releases all event handlers and suppresses finalization. *** DO NOT CALL DIRECTLY! ***.
◆ SetCurrentCycle()
| Cycle Gondwana.Drawing.Animation.Animator.SetCurrentCycle |
( |
string | cycleKey | ) |
|
Sets the current animation cycle using the specified cycle key.
- Parameters
-
| cycleKey | The key identifying the animation cycle to set as current. |
- Returns
- The cycle that was set as the current cycle.
◆ StartAnimation() [1/2]
| void Gondwana.Drawing.Animation.Animator.StartAnimation |
( |
| ) |
|
Starts playing the current animation cycle. If no cycle is set, this method has no effect. Raises the Started event when the animation begins.
◆ StartAnimation() [2/2]
| void Gondwana.Drawing.Animation.Animator.StartAnimation |
( |
string | cycleKey | ) |
|
Sets the current animation cycle and starts playing it.
- Parameters
-
| cycleKey | The key identifying the animation cycle to play. |
◆ StopAnimation()
| void Gondwana.Drawing.Animation.Animator.StopAnimation |
( |
| ) |
|
Stops the current animation cycle. Raises the Stopped event and advances to the next cycle if one is configured. If the next cycle is configured to hide the tile on cycle end, the parent tile will be hidden.
◆ CurrentCycle
| Cycle Gondwana.Drawing.Animation.Animator.CurrentCycle |
|
getset |
Gets or sets the current animation cycle being played.
◆ IsCycling
| bool Gondwana.Drawing.Animation.Animator.IsCycling |
|
getset |
Gets or sets a value indicating whether the animation is currently cycling. Setting this property to true starts the animation; setting it to false stops it.
◆ Parent
| Tile Gondwana.Drawing.Animation.Animator.Parent |
|
get |
Gets the tile that owns this animator.
◆ Cycled
Occurs each time the animation advances to the next frame in the cycle.
◆ Started
Occurs when an animation starts playing.
◆ Stopped
Occurs when an animation stops playing.