pokepinballrs/include/types.h
Marcus Huderle 2afa19326c
Some checks are pending
CI / build (push) Waiting to run
sub_11C14
2025-02-21 08:03:17 -06:00

72 lines
1.5 KiB
C

#ifndef GUARD_TYPES_H
#define GUARD_TYPES_H
#include "gba/gba.h"
#define NUM_SPRITE_GROUPS 100
#define MAX_SPRITES_IN_GROUP 22
// Place all discovered types (structs, unions, etc.) in this file.
typedef void (*StateFunc)(void);
typedef void (*IntrFunc)(void);
struct SpriteSet
{
u16 count;
u8 oamData[0];
};
struct OamDataSimple
{
u16 oamId;
s16 xOffset;
s16 yOffset;
};
struct SpriteGroup
{
u16 available;
s16 baseX;
s16 baseY;
struct OamDataSimple oam[MAX_SPRITES_IN_GROUP];
};
// size: 0xB8
struct Coords16
{
s16 x;
s16 y;
};
struct UCoords16
{
u16 x;
u16 y;
};
struct Coords32
{
s32 x;
s32 y;
};
struct UCoords32
{
u32 x;
u32 y;
};
struct PokemonSpecies {
u16 mainSeriesIndexNumber; // Refers to the generation three internal index number; e.g. Treecko is 0x115 (decimal 227).
u8 unk2[0x5];
u8 name[10]; // Space-padded ASCII
u8 catchIndex; // Non-zero for all catch pokemon other than Treecko, zero for Treecko and all non-catch pokemon
u8 eggIndex; // Non-zero for all hatch pokemon other than Wurmple, zero for Wurmple and all non-hatch pokemon
u8 unk13; // Something egg related; only hatch pokemon have this set to 1, but not all do, and there is no other pattern
// unk13 list: Azurill, Skitty, Zubat, Plusle, Minun, Igglybuff, Shuppet, Chimecho, Pichu, Natu
u8 evolutionMethod; // Exp, Stone, etc.
u8 evolutionTarget; // Uses the standard index numbers; e.g. Treecko is 0x00 (SPECIES_TREECKO)
};
#endif // GUARD_TYPES_H