summaryrefslogtreecommitdiff
path: root/include/types.h
blob: e43b6dc3bf0c213d07e7555614e51676ea9fa1c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef GUARD_TYPES_H
#define GUARD_TYPES_H

// Place all discovered types (structs, unions, etc.) in this file.

typedef void (*StateFunc)(void);
typedef void (*IntrFunc)(void);

struct MainUnk2E8
{
    u16 unk0;
    u16 unk2;
};

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 Coord16
{
    u16 x;
    u16 y;
};

#endif  // GUARD_TYPES_H