yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::zelda3::DungeonSpawnPoint Class Reference

#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
 

Detailed Description

Definition at line 120 of file dungeon_spawn_point.h.

Constructor & Destructor Documentation

◆ DungeonSpawnPoint()

yaze::zelda3::DungeonSpawnPoint::DungeonSpawnPoint ( )
default

Member Function Documentation

◆ Load()

static absl::StatusOr< DungeonSpawnPoint > yaze::zelda3::DungeonSpawnPoint::Load ( const Rom & rom,
int spawn_id )
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::zelda3::CollectRoomCensusInput(), yaze::cli::handlers::DungeonGroupCommandHandler::Execute(), yaze::editor::DungeonRoomLoader::LoadDungeonSpawnPoints(), yaze::editor::DungeonEditorV2::RefreshEntranceDirtyState(), yaze::zelda3::RoomEntrance::RoomEntrance(), and yaze::cli::handlers::WriteDungeonSpawnPointReport().

◆ Save()

◆ spawn_id()

◆ dirty()

bool yaze::zelda3::DungeonSpawnPoint::dirty ( ) const
inline

Definition at line 181 of file dungeon_spawn_point.h.

References dirty_.

Referenced by yaze::editor::CaptureDungeonSpawnCamera().

◆ MarkDirty()

void yaze::zelda3::DungeonSpawnPoint::MarkDirty ( )
inline

◆ ClearDirty()

void yaze::zelda3::DungeonSpawnPoint::ClearDirty ( )
inline

Member Data Documentation

◆ room_id

uint16_t yaze::zelda3::DungeonSpawnPoint::room_id = 0

◆ camera_scroll_boundaries

std::array<uint8_t, 8> yaze::zelda3::DungeonSpawnPoint::camera_scroll_boundaries {}

◆ horizontal_scroll

uint16_t yaze::zelda3::DungeonSpawnPoint::horizontal_scroll = 0

◆ vertical_scroll

uint16_t yaze::zelda3::DungeonSpawnPoint::vertical_scroll = 0

◆ y_coordinate

uint16_t yaze::zelda3::DungeonSpawnPoint::y_coordinate = 0

◆ x_coordinate

uint16_t yaze::zelda3::DungeonSpawnPoint::x_coordinate = 0

◆ camera_trigger_y

uint16_t yaze::zelda3::DungeonSpawnPoint::camera_trigger_y = 0

◆ camera_trigger_x

uint16_t yaze::zelda3::DungeonSpawnPoint::camera_trigger_x = 0

◆ main_gfx

◆ floor

◆ dungeon_id

uint8_t yaze::zelda3::DungeonSpawnPoint::dungeon_id = 0

◆ layer

◆ camera_scroll_controller

uint8_t yaze::zelda3::DungeonSpawnPoint::camera_scroll_controller = 0

◆ quadrant

uint8_t yaze::zelda3::DungeonSpawnPoint::quadrant = 0

◆ overworld_door_tilemap

uint16_t yaze::zelda3::DungeonSpawnPoint::overworld_door_tilemap = 0

◆ entrance_id

◆ song

◆ spawn_id_

int yaze::zelda3::DungeonSpawnPoint::spawn_id_ = -1
private

Definition at line 204 of file dungeon_spawn_point.h.

Referenced by Load(), and spawn_id().

◆ dirty_

bool yaze::zelda3::DungeonSpawnPoint::dirty_ = false
private

Definition at line 205 of file dungeon_spawn_point.h.

Referenced by ClearDirty(), dirty(), and MarkDirty().


The documentation for this class was generated from the following file: