yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze_dungeon.h File Reference

Dungeon room helpers for the YAZE public API. More...

#include "zelda.h"
Include dependency graph for yaze_dungeon.h:

Go to the source code of this file.

Functions

zelda3_dungeon_roomyaze_load_all_rooms (const zelda3_rom *rom, int *room_count)
 Load all dungeon rooms from ROM.
 
const zelda3_dungeon_roomyaze_load_room (const zelda3_rom *rom, int room_id)
 Load a specific dungeon room.
 
void yaze_free_rooms (zelda3_dungeon_room *rooms, int room_count)
 Free dungeon room data.
 

Detailed Description

Dungeon room helpers for the YAZE public API.

Definition in file yaze_dungeon.h.

Function Documentation

◆ yaze_load_all_rooms()

zelda3_dungeon_room * yaze_load_all_rooms ( const zelda3_rom * rom,
int * room_count )

Load all dungeon rooms from ROM.

Loads and parses all dungeon room data from the ROM.

Parameters
romThe ROM to load rooms from
room_countPointer to store the number of rooms loaded
Returns
Array of room structures, or NULL on error
Note
Caller must free the returned array when done

Definition at line 236 of file yaze.cc.

References zelda3_dungeon_room::id.

◆ yaze_load_room()

const zelda3_dungeon_room * yaze_load_room ( const zelda3_rom * rom,
int room_id )

Load a specific dungeon room.

Parameters
romROM to load from
room_idRoom ID to load (0-295 for most ROMs)
Returns
Pointer to room data, or NULL on error

◆ yaze_free_rooms()

void yaze_free_rooms ( zelda3_dungeon_room * rooms,
int room_count )

Free dungeon room data.

Parameters
roomsArray of rooms to free
room_countNumber of rooms in array