From 5050f358f0a7486d260f95b4a59b8b623e9dc533 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 29 Dec 2024 09:59:52 -0500 Subject: [PATCH] Add z3_dungeon_room and yaze_load_all_rooms to public headers --- incl/dungeon.h | 8 +++++++- incl/yaze.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/incl/dungeon.h b/incl/dungeon.h index d476e1f7..92852a67 100644 --- a/incl/dungeon.h +++ b/incl/dungeon.h @@ -54,8 +54,14 @@ typedef enum z3_dungeon_background2 { DarkRoom } z3_dungeon_background2; +typedef struct z3_dungeon_room { + z3_dungeon_background2 bg2; + z3_dungeon_destination pits; + z3_dungeon_destination stairs[4]; +} z3_dungeon_room; + #ifdef __cplusplus } #endif -#endif // YAZE_BASE_DUNGEON_H_ +#endif // YAZE_BASE_DUNGEON_H_ diff --git a/incl/yaze.h b/incl/yaze.h index 68f0ce61..a736b55b 100644 --- a/incl/yaze.h +++ b/incl/yaze.h @@ -65,6 +65,8 @@ snes_color yaze_get_color_from_paletteset(const z3_rom* rom, int palette_set, z3_overworld* yaze_load_overworld(const z3_rom* rom); +z3_dungeon_room* yaze_load_all_rooms(const z3_rom* rom); + struct yaze_command_registry { void (*register_command)(const char* name, void (*command)(void)); };