#include <dungeon_spawn_point.h>
Public Member Functions | |
| DungeonSpawnPoint ()=default | |
| absl::Status | Save (Rom *rom, int spawn_id) |
| int | spawn_id () const |
| bool | dirty () const |
| void | MarkDirty () |
| void | ClearDirty () |
Static Public Member Functions | |
| static absl::StatusOr< DungeonSpawnPoint > | Load (const Rom &rom, int spawn_id) |
Public Attributes | |
| uint16_t | room_id = 0 |
| std::array< uint8_t, 8 > | camera_scroll_boundaries {} |
| uint16_t | horizontal_scroll = 0 |
| uint16_t | vertical_scroll = 0 |
| uint16_t | y_coordinate = 0 |
| uint16_t | x_coordinate = 0 |
| uint16_t | camera_trigger_y = 0 |
| uint16_t | camera_trigger_x = 0 |
| uint8_t | main_gfx = 0 |
| uint8_t | floor = 0 |
| uint8_t | dungeon_id = 0 |
| uint8_t | layer = 0 |
| uint8_t | camera_scroll_controller = 0 |
| uint8_t | quadrant = 0 |
| uint16_t | overworld_door_tilemap = 0 |
| uint16_t | entrance_id = 0 |
| uint8_t | song = 0 |
Private Attributes | |
| int | spawn_id_ = -1 |
| bool | dirty_ = false |
Definition at line 120 of file dungeon_spawn_point.h.
|
default |
|
inlinestatic |
Definition at line 124 of file dungeon_spawn_point.h.
References camera_scroll_boundaries, camera_scroll_controller, camera_trigger_x, camera_trigger_y, yaze::Rom::data(), dungeon_id, yaze::zelda3::DungeonSpawnPointWriteRanges(), entrance_id, floor, horizontal_scroll, yaze::Rom::is_loaded(), yaze::zelda3::kDungeonSpawnCameraScrollBoundaries, yaze::zelda3::kDungeonSpawnCameraScrollController, yaze::zelda3::kDungeonSpawnCameraTriggerX, yaze::zelda3::kDungeonSpawnCameraTriggerY, yaze::zelda3::kDungeonSpawnDungeonId, yaze::zelda3::kDungeonSpawnEntranceId, yaze::zelda3::kDungeonSpawnFloor, yaze::zelda3::kDungeonSpawnHorizontalScroll, yaze::zelda3::kDungeonSpawnLayer, yaze::zelda3::kDungeonSpawnMainGfx, yaze::zelda3::kDungeonSpawnOverworldDoorTilemap, yaze::zelda3::kDungeonSpawnQuadrant, yaze::zelda3::kDungeonSpawnRoom, yaze::zelda3::kDungeonSpawnSong, yaze::zelda3::kDungeonSpawnVerticalScroll, yaze::zelda3::kDungeonSpawnXCoordinate, yaze::zelda3::kDungeonSpawnYCoordinate, yaze::zelda3::kNumDungeonSpawnPoints, layer, main_gfx, overworld_door_tilemap, quadrant, room_id, yaze::Rom::size(), song, spawn_id(), spawn_id_, vertical_scroll, x_coordinate, and y_coordinate.
Referenced by yaze::cli::handlers::DungeonGroupCommandHandler::Execute(), yaze::editor::DungeonRoomLoader::LoadDungeonSpawnPoints(), yaze::zelda3::RoomEntrance::RoomEntrance(), and yaze::cli::handlers::WriteDungeonSpawnPointReport().
|
inline |
Definition at line 243 of file dungeon_spawn_point.h.
References camera_scroll_boundaries, camera_scroll_controller, camera_trigger_x, camera_trigger_y, ClearDirty(), dungeon_id, entrance_id, floor, horizontal_scroll, yaze::Rom::is_loaded(), yaze::zelda3::kDungeonSpawnCameraScrollBoundaries, yaze::zelda3::kDungeonSpawnCameraScrollController, yaze::zelda3::kDungeonSpawnCameraTriggerX, yaze::zelda3::kDungeonSpawnCameraTriggerY, yaze::zelda3::kDungeonSpawnDungeonId, yaze::zelda3::kDungeonSpawnEntranceId, yaze::zelda3::kDungeonSpawnFloor, yaze::zelda3::kDungeonSpawnHorizontalScroll, yaze::zelda3::kDungeonSpawnLayer, yaze::zelda3::kDungeonSpawnMainGfx, yaze::zelda3::kDungeonSpawnOverworldDoorTilemap, yaze::zelda3::kDungeonSpawnQuadrant, yaze::zelda3::kDungeonSpawnRoom, yaze::zelda3::kDungeonSpawnSong, yaze::zelda3::kDungeonSpawnVerticalScroll, yaze::zelda3::kDungeonSpawnXCoordinate, yaze::zelda3::kDungeonSpawnYCoordinate, layer, main_gfx, overworld_door_tilemap, quadrant, RETURN_IF_ERROR, room_id, song, spawn_id(), yaze::zelda3::ValidateDungeonSpawnPointForSave(), vertical_scroll, yaze::Rom::WriteByte(), yaze::Rom::WriteShort(), x_coordinate, and y_coordinate.
|
inline |
Definition at line 180 of file dungeon_spawn_point.h.
References spawn_id_.
Referenced by Load(), Save(), and yaze::zelda3::ValidateDungeonSpawnPointForSave().
|
inline |
Definition at line 181 of file dungeon_spawn_point.h.
References dirty_.
|
inline |
Definition at line 182 of file dungeon_spawn_point.h.
References dirty_.
|
inline |
| uint16_t yaze::zelda3::DungeonSpawnPoint::room_id = 0 |
Definition at line 185 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), Save(), and yaze::zelda3::ValidateDungeonSpawnPointForSave().
| std::array<uint8_t, 8> yaze::zelda3::DungeonSpawnPoint::camera_scroll_boundaries {} |
Definition at line 186 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::horizontal_scroll = 0 |
Definition at line 187 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::vertical_scroll = 0 |
Definition at line 188 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::y_coordinate = 0 |
Definition at line 189 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::x_coordinate = 0 |
Definition at line 190 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::camera_trigger_y = 0 |
Definition at line 191 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::camera_trigger_x = 0 |
Definition at line 192 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint8_t yaze::zelda3::DungeonSpawnPoint::main_gfx = 0 |
Definition at line 193 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint8_t yaze::zelda3::DungeonSpawnPoint::floor = 0 |
Definition at line 194 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint8_t yaze::zelda3::DungeonSpawnPoint::dungeon_id = 0 |
Definition at line 195 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint8_t yaze::zelda3::DungeonSpawnPoint::layer = 0 |
Definition at line 196 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint8_t yaze::zelda3::DungeonSpawnPoint::camera_scroll_controller = 0 |
Definition at line 197 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint8_t yaze::zelda3::DungeonSpawnPoint::quadrant = 0 |
Definition at line 198 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::overworld_door_tilemap = 0 |
Definition at line 199 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
| uint16_t yaze::zelda3::DungeonSpawnPoint::entrance_id = 0 |
Definition at line 200 of file dungeon_spawn_point.h.
Referenced by Load(), Save(), and yaze::zelda3::ValidateDungeonSpawnPointForSave().
| uint8_t yaze::zelda3::DungeonSpawnPoint::song = 0 |
Definition at line 201 of file dungeon_spawn_point.h.
Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().
|
private |
Definition at line 204 of file dungeon_spawn_point.h.
Referenced by Load(), and spawn_id().
|
private |
Definition at line 205 of file dungeon_spawn_point.h.
Referenced by ClearDirty(), dirty(), and MarkDirty().