pokeplatinum/include/struct_defs/species_sprite_data.h
2025-10-29 17:41:17 -04:00

23 lines
1001 B
C

#ifndef POKEPLATINUM_SPECIES_SPRITE_DATA_H
#define POKEPLATINUM_SPECIES_SPRITE_DATA_H
#include "struct_defs/sprite_animation_frame.h"
#define MAX_FACES 2
typedef struct SpeciesSpriteAnim {
u8 cryDelay; ///< How long to wait before playing the cry.
u8 animation; ///< Which pre-programmed animation sequence to use.
u8 startDelay; ///< How long to wait before starting the animation sequence.
SpriteAnimFrame frames[MAX_ANIMATION_FRAMES]; ///< Frame-data for each frame of the animation sequence.
} SpeciesSpriteAnim;
typedef struct SpeciesSpriteData {
SpeciesSpriteAnim faceAnims[MAX_FACES]; ///< Data for each display-face of the Pokemon's sprite.
s8 yOffset; ///< Additional vertical offset of the Pokemon's front-face sprite.
s8 xOffsetShadow; ///< Horizontal offset for the shadow sprite beneath the Pokemon's sprite.
u8 shadowSize; ///< Size of the shadow sprite beneath the Pokemon's sprite.
} SpeciesSpriteData;
#endif // POKEPLATINUM_SPECIES_SPRITE_DATA_H