Skip to Content
The Alchemy Project

struct ANIMATION_METADATA

The sprite_metadata group. More…

Declared in definitions.h.

Fields

NameDescription
Uint8widthpixels; 0 marks a row with no sprite
Uint8heightpixels
Uint16scale8.8 fixed point, 256 full size (a Sprite's scale over 256)
Uint8drawKindANIMATION_FACING_KIND: which facing table turns its pictures
Uint8animationCountscripts in animation
Sint8adjustXpixels the sprite is drawn off its position
Sint8adjustYpixels the sprite is drawn off its position
Uint8spriteTopsigned pixels from feet to sprite top (Mind Read, carried actors)
Uint8footprintpixels across the actor stands on, twice its radius
Uint8pictureCodechow its pictures are packed: 1 type-01, 3 LZ, anything else raw
void **picturesnull for a sprite whose pictures a cache loads
Uint8 **animationits command scripts, one per animation number

Description

The sprite_metadata group. A sprite's animation metadata, its row of SpriteAnimationMetadata. An animation's metadata: the sprite's size, scale and offsets, how its pictures are drawn and decoded, its pictures and its animation scripts. spriteTop (signed pixels from the actor's feet up to the top of its sprite) gives where Mind Read's line starts and what an actor carried on top of another is raised by.

struct ANIMATION_METADATA

Referenced by fdPsynergyUpdateMindReadWave(), fdResourceGetMetadataRecordStub(), fdSpriteAddAnimation(), fdSpriteAnimationAllocate(), fdSpriteAnimationReset(), fdSpriteAnimationStart(), fdSpriteAnimationSumCommandLengths(), fdSpriteCreate(), fdSpritePictureCacheLoad(), fdSpriteResetAnimations(), fdSpriteStartAnimation(), fdSpriteViewerStartStaggeredAnimations() and SpriteAnimationMetadata.

Definition at line 1949 of file definitions.h.

Fields in detail

width

Uint8 width

pixels; 0 marks a row with no sprite

height

Uint8 height

pixels

scale

Uint16 scale

8.8 fixed point, 256 full size (a Sprite's scale over 256)

drawKind

Uint8 drawKind

ANIMATION_FACING_KIND: which facing table turns its pictures

animationCount

Uint8 animationCount

scripts in animation

adjustX

Sint8 adjustX

pixels the sprite is drawn off its position

adjustY

Sint8 adjustY

pixels the sprite is drawn off its position

spriteTop

Uint8 spriteTop

signed pixels from feet to sprite top (Mind Read, carried actors)

footprint

Uint8 footprint

pixels across the actor stands on, twice its radius

pictureCodec

Uint8 pictureCodec

how its pictures are packed: 1 type-01, 3 LZ, anything else raw

pictures

void **pictures

null for a sprite whose pictures a cache loads

animation

Uint8 **animation

its command scripts, one per animation number