forked from pret/pokefirered
-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_preview_screen.h
64 lines (59 loc) · 1.52 KB
/
map_preview_screen.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef GUARD_MAP_PREVIEW_SCREEN_H
#define GUARD_MAP_PREVIEW_SCREEN_H
enum MapPreviewScreenId
{
MPS_VIRIDIAN_FOREST = 0u,
MPS_MT_MOON,
MPS_DIGLETTS_CAVE,
MPS_ROCK_TUNNEL,
MPS_POKEMON_TOWER,
MPS_SAFARI_ZONE,
MPS_SEAFOAM_ISLANDS,
MPS_POKEMON_MANSION,
MPS_ROCKET_HIDEOUT,
MPS_SILPH_CO,
MPS_VICTORY_ROAD,
MPS_CERULEAN_CAVE,
MPS_POWER_PLANT,
MPS_MT_EMBER,
MPS_ROCKET_WAREHOUSE,
MPS_MONEAN_CHAMBER,
MPS_DOTTED_HOLE,
MPS_BERRY_FOREST,
MPS_ICEFALL_CAVE,
MPS_LOST_CAVE,
MPS_ALTERING_CAVE,
MPS_PATTERN_BUSH,
MPS_LIPTOO_CHAMBER,
MPS_WEEPTH_CHAMBER,
MPS_TDILFORD_CHAMBER,
MPS_SCUFIB_CHAMBER,
MPS_RIXY_CHAMBER,
MPS_VIAPOIS_CHAMBER,
MPS_COUNT
};
#define MPS_TYPE_CAVE 0
#define MPS_TYPE_FOREST 1
#define MPS_TYPE_ANY 2
struct MapPreviewScreen
{
u8 mapsec;
u8 type;
u16 flagId;
const void *tilesptr;
const void *tilemapptr;
const void *palptr;
};
u16 MapPreview_CreateMapNameWindow(u8 id);
void MapPreview_SetFlag(u16 a0);
u16 MapPreview_GetDuration(u8 id);
bool8 MapHasPreviewScreen(u8 mapsec, u8 type);
bool32 ForestMapPreviewScreenIsRunning(void);
const struct MapPreviewScreen * GetDungeonMapPreviewScreenInfo(u8 mapsec);
bool32 MapHasPreviewScreen_HandleQLState2(u8 mapsec, u8 type);
void MapPreview_InitBgs(void);
void MapPreview_LoadGfx(u8 mapsec);
bool32 MapPreview_IsGfxLoadFinished(void);
void MapPreview_Unload(s32 windowId);
void MapPreview_StartForestTransition(u8 mapsec);
#endif //GUARD_MAP_PREVIEW_SCREEN_H