2021-09-15 23:24:19 +00:00
|
|
|
#ifndef Z64MAP_MARK_H
|
|
|
|
#define Z64MAP_MARK_H
|
2021-03-29 17:24:08 +00:00
|
|
|
|
|
|
|
#include "ultra64.h"
|
|
|
|
|
2021-04-28 09:10:23 +00:00
|
|
|
#define MAP_MARK_NONE -1
|
|
|
|
#define MAP_MARK_CHEST 0
|
|
|
|
#define MAP_MARK_BOSS 1
|
2021-03-29 17:24:08 +00:00
|
|
|
|
2024-08-12 07:07:48 +00:00
|
|
|
typedef struct MapMarkPoint {
|
2021-03-29 17:24:08 +00:00
|
|
|
/* 0x00 */ s8 chestFlag; // chest icon is only displayed if this flag is not set for the current room
|
|
|
|
/* 0x01 */ u8 x, y; // coordinates to place the icon (top-left corner), relative to the minimap texture
|
|
|
|
} MapMarkPoint; // size = 0x3
|
|
|
|
|
2024-08-12 07:07:48 +00:00
|
|
|
typedef struct MapMarkIconData {
|
2021-03-29 17:24:08 +00:00
|
|
|
/* 0x00 */ s8 markType; // 0 for the chest icon, 1 for the boss skull icon, -1 for none
|
|
|
|
/* 0x01 */ u8 count; // number of icons to display
|
|
|
|
/* 0x02 */ MapMarkPoint points[12];
|
|
|
|
} MapMarkIconData; // size = 0x26
|
|
|
|
|
|
|
|
typedef MapMarkIconData MapMarkData[3]; // size = 0x72
|
|
|
|
|
|
|
|
extern MapMarkData* gMapMarkDataTable[];
|
|
|
|
|
|
|
|
#endif
|