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

#include <room_layout.h>

Collaboration diagram for yaze::zelda3::RoomLayout:

Public Member Functions

 RoomLayout ()=default
 
 RoomLayout (Rom *rom)
 
void set_rom (Rom *rom)
 
absl::Status LoadLayout (int layout_id)
 
const std::vector< RoomObject > & GetObjects () const
 

Private Member Functions

absl::StatusOr< int > GetLayoutAddress (int layout_id) const
 

Private Attributes

Romrom_ = nullptr
 
std::vector< RoomObjectobjects_
 

Detailed Description

Definition at line 13 of file room_layout.h.

Constructor & Destructor Documentation

◆ RoomLayout() [1/2]

yaze::zelda3::RoomLayout::RoomLayout ( )
default

◆ RoomLayout() [2/2]

yaze::zelda3::RoomLayout::RoomLayout ( Rom rom)
inlineexplicit

Definition at line 16 of file room_layout.h.

Member Function Documentation

◆ set_rom()

void yaze::zelda3::RoomLayout::set_rom ( Rom rom)
inline

Definition at line 18 of file room_layout.h.

References rom_.

◆ LoadLayout()

◆ GetObjects()

const std::vector< RoomObject > & yaze::zelda3::RoomLayout::GetObjects ( ) const
inline

Definition at line 22 of file room_layout.h.

References objects_.

Referenced by yaze::zelda3::Room::LoadLayoutTilesToBuffer().

◆ GetLayoutAddress()

absl::StatusOr< int > yaze::zelda3::RoomLayout::GetLayoutAddress ( int  layout_id) const
private

Definition at line 18 of file room_layout.cc.

References yaze::Rom::is_loaded(), rom_, yaze::Rom::size(), and yaze::SnesToPc().

Referenced by LoadLayout().

Here is the call graph for this function:

Member Data Documentation

◆ rom_

Rom* yaze::zelda3::RoomLayout::rom_ = nullptr
private

Definition at line 27 of file room_layout.h.

Referenced by GetLayoutAddress(), LoadLayout(), and set_rom().

◆ objects_

std::vector<RoomObject> yaze::zelda3::RoomLayout::objects_
private

Definition at line 28 of file room_layout.h.

Referenced by GetObjects(), and LoadLayout().


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