AnimatedSprite Type
Runtime state for a playing animation.
This is a small struct designed for zero-allocation updates. Store this in your Elmish model for each animated entity.
Record fields
| Record Field |
Description
|
Full Usage:
AnimationIndex
Field type: int
|
Index into AnimationsByIndex (faster than string lookup every frame).
|
Tint color.
|
|
Full Usage:
CurrentFrame
Field type: int
|
Current frame index within the animation.
|
Full Usage:
Finished
Field type: bool
|
Has animation finished? (non-looping only)
|
Full Usage:
FlipX
Field type: bool
|
Flip horizontally?
|
Full Usage:
FlipY
Field type: bool
|
Flip vertically?
|
Full Usage:
Rotation
Field type: float32
|
Rotation in radians.
|
Full Usage:
Scale
Field type: float32
|
Scale factor.
|
|
Reference to the loaded sprite sheet.
|
Full Usage:
TimeInFrame
Field type: float32
|
Time accumulated in the current frame (seconds).
|
Mibo