1#ifndef YAZE_APP_ZELDA3_DUNGEON_ROOM_ENTRANCE_H
2#define YAZE_APP_ZELDA3_DUNGEON_ROOM_ENTRANCE_H
111 static_cast<short>((rom[
kEntranceRoom + (entrance_id * 2) + 1] << 8) +
140 static_cast<short>((rom[
kEntranceExit + (entrance_id * 2) + 1] << 8) +
152 if (is_spawn_point) {
153 room_ =
static_cast<short>(
191 exit_ =
static_cast<short>(
214 absl::Status
Save(
Rom &rom,
int entrance_id,
bool is_spawn_point =
false) {
215 if (!is_spawn_point) {
283 (uint8_t)(
music_ & 0xFF)));
287 (uint8_t)(
door_ & 0xFF)));
289 (uint8_t)(
floor_ & 0xFF)));
321 return absl::OkStatus();
The Rom class is used to load, save, and modify Rom data.
absl::Status WriteShort(int addr, uint16_t value)
absl::Status Write(int addr, int value)
Dungeon Room Entrance or Spawn Point.
uint8_t camera_boundary_fw_
uint16_t camera_trigger_y_
uint8_t camera_boundary_fe_
uint8_t camera_boundary_fs_
uint8_t camera_boundary_qs_
uint16_t camera_trigger_x_
uint8_t camera_boundary_qn_
RoomEntrance(Rom &rom, uint8_t entrance_id, bool is_spawn_point=false)
absl::Status Save(Rom &rom, int entrance_id, bool is_spawn_point=false)
uint8_t camera_boundary_qw_
uint8_t camera_boundary_fn_
uint8_t camera_boundary_qe_
#define RETURN_IF_ERROR(expression)
constexpr int kStartingEntrancescrolling
constexpr int kStartingEntranceYScroll
constexpr int chests_backupitems
constexpr int kEntranceFloor
constexpr int kEntranceDungeon
constexpr int bedPositionResetXLow
constexpr int chests_sramaddress
constexpr int kStartingEntranceLadderBG
constexpr int kEntranceXPosition
constexpr int kEntranceDoor
constexpr int kEntranceXScroll
constexpr int kEntranceLadderBG
constexpr int initial_equipement
constexpr int chests_itemsproperties
constexpr int kStartingEntranceXPosition
constexpr int kEntranceScrollEdge
constexpr int kStartingEntrancemusic
constexpr int kEntranceExit
constexpr int bedPositionX
constexpr int kEntrancescrolling
constexpr int bedPositionResetYLow
constexpr int kStartingEntranceBlockset
constexpr int bedPositionY
constexpr int kStartingEntranceDoor
constexpr int bedSheetPositionX
constexpr int chests_xoffset
constexpr int kEntranceScrollQuadrant
constexpr int kEntranceCameraYTrigger
constexpr int chests_itemswide
constexpr int kStartingEntranceroom
constexpr int kStartingEntranceScrollQuadrant
constexpr int kEntranceYScroll
constexpr int kEntranceRoom
constexpr int bedPositionResetXHigh
constexpr int kStartingEntranceScrollEdge
constexpr int items_data_start
constexpr int kStartingEntranceXScroll
constexpr int bedSheetPositionY
constexpr int kEntranceBlockset
constexpr int bedPositionResetYHigh
constexpr int chests_sramvalue
constexpr int items_data_end
constexpr int dungeons_bossrooms
constexpr int kStartingEntranceCameraYTrigger
constexpr int kStartingEntranceDungeon
constexpr int chests_itemsgfx
constexpr int kStartingEntranceFloor
constexpr int kEntranceCameraXTrigger
constexpr int chests_yoffset
constexpr int dungeons_endrooms
constexpr int kStartingEntranceentrance
constexpr int kStartingEntranceexit
constexpr int kStartingEntranceCameraXTrigger
constexpr int dungeons_startrooms
constexpr int kStartingEntranceYPosition
constexpr int kEntranceMusic
constexpr int chests_msgid
constexpr int kEntranceYPosition