Move PokemonSpriteShadow to pokemon sprite struct def header

This commit is contained in:
RavePossum
2025-02-23 09:19:58 -05:00
parent ae19bfe5ee
commit b37e5caf9a
2 changed files with 15 additions and 20 deletions

View File

@@ -7,7 +7,6 @@
#include "struct_defs/sprite_animation_frame.h"
#include "struct_defs/struct_02007C7C_sub1.h"
#include "struct_defs/struct_02007C7C_sub2.h"
typedef struct PokemonSprite PokemonSprite;
@@ -24,6 +23,21 @@ typedef struct PokemonSpriteTemplate {
u32 personality; //< Cached personality value for Pokemon front-sprites. Specifically used for Spinda spots.
} PokemonSpriteTemplate;
typedef struct PokemonSpriteShadow {
u16 plttSlot : 2;
u16 shouldAdjustX : 1;
u16 shouldAdjustY : 1;
u16 isAffine : 1;
u16 size : 2;
u16 padding_00 : 9;
s8 height;
u8 padding_03;
s16 x;
s16 y;
s16 xOffset;
s16 yOffset;
} PokemonSpriteShadow;
struct PokemonSprite {
u32 unk_00_0 : 1;
u32 unk_00_1 : 6;

View File

@@ -1,19 +0,0 @@
#ifndef POKEPLATINUM_STRUCT_02007C7C_SUB2_H
#define POKEPLATINUM_STRUCT_02007C7C_SUB2_H
typedef struct {
u16 plttSlot : 2;
u16 shouldAdjustX : 1;
u16 shouldAdjustY : 1;
u16 isAffine : 1;
u16 size : 2;
u16 padding_00 : 9;
s8 height;
u8 padding_03;
s16 x;
s16 y;
s16 xOffset;
s16 yOffset;
} PokemonSpriteShadow;
#endif // POKEPLATINUM_STRUCT_02007C7C_SUB2_H