summaryrefslogtreecommitdiff
path: root/include/message_data_static.h
blob: bed14429b4cb962ebf095d467e2d68c1c87cd9d3 (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
#ifndef MESSAGE_DATA_STATIC_H
#define MESSAGE_DATA_STATIC_H

#include "PR/ultratypes.h"

typedef struct MessageTableEntry {
    /* 0x0 */ u16 textId;
    /* 0x2 */ u8 typePos;
    /* 0x4 */ const char* segment;
} MessageTableEntry; // size = 0x8;

#define DEFINE_MESSAGE(textId, type, yPos, msg) \
    extern const char _message_##textId[];

#include "assets/text/message_data.h"

#undef DEFINE_MESSAGE

#define DEFINE_MESSAGE(textId, type, yPos, msg) \
    extern const char _message_##textId##_staff[];

#include "assets/text/message_data_staff.h"

#undef DEFINE_MESSAGE

#endif