struct ANIMATION_METADATA
The sprite_metadata group. More…
Declared in definitions.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | width | Pixels. |
Uint8 | height | Pixels. |
Uint16 | scale | 8.8 fixed point, 256 full size. |
Uint8 | drawKind | SPR_ANIMATION.kind: the facing table its pictures follow. |
Uint8 | animationCount | The scripts in animation; an animation number at or past it is not played. |
Sint8 | adjustX | Pixels. |
Sint8 | adjustY | Pixels. |
Sint8 | spriteTop | Pixels from the actor's position up to the top of its sprite (fdActorGetScreenPos). |
Uint8 | footprint | Pixels; half of it is a battle unit's radius, and can be an actor's radius (ACTOR.radius). |
Uint8 | pictureCodec | An SPR_PICTURE_CODEC, copied to SPR_ANIMATION.mode. |
void ** | pictures | The picture pointers; null takes them from the sprite picture cache slot holding the animation (fdSpritePictureCacheFindByTag). |
Uint8 ** | animation | The command scripts, one per animation number. |
Description
The sprite_metadata group. Animation metadata and its lookup by resource. An
animation's metadata: the sprite's size, scale and offsets, how its pictures
are drawn and decoded, its pictures and its animation scripts.
struct ANIMATION_METADATA
Referenced by fdPsynergyUpdateMindReadWave(), fdSpriteAddAnimation(), fdSpriteAnimationAllocate(), fdSpriteAnimationReset(), fdSpriteAnimationStart(), fdSpriteAnimationSumCommandLengths(), fdSpriteCreate(), fdSpritePictureCacheLoad(), fdSpriteResetAnimations(), fdSpriteStartAnimation(), fdSpriteViewerRun(), fdSpriteViewerStartStaggeredAnimations(), SpriteAnimationMetadata and syResourceGetMetadataRecord().
Definition at line 1527 of file definitions.h.
Fields in detail
width
Uint8 width
Pixels.
height
Uint8 height
Pixels.
scale
Uint16 scale
8.8 fixed point, 256 full size.
drawKind
Uint8 drawKind
SPR_ANIMATION.kind: the facing table its pictures
follow.
animationCount
Uint8 animationCount
The scripts in animation; an animation number at or past it is not played.
adjustX
Sint8 adjustX
Pixels.
adjustY
Sint8 adjustY
Pixels.
spriteTop
Sint8 spriteTop
Pixels from the actor's position up to the top of
its sprite (fdActorGetScreenPos).
footprint
Uint8 footprint
Pixels; half of it is a battle unit's radius, and
can be an actor's radius (ACTOR.radius).
pictureCodec
Uint8 pictureCodec
An SPR_PICTURE_CODEC, copied to
SPR_ANIMATION.mode.
pictures
void **pictures
The picture pointers; null takes them from the
sprite picture cache slot holding the animation
(fdSpritePictureCacheFindByTag).
animation
Uint8 **animation
The command scripts, one per animation number.