A class to hold a shared pointer to a Rom object. More...
#include <rom.h>
Inherited by yaze::editor::GfxGroupEditor, yaze::editor::Tile16Editor, yaze::emu::Emulator, yaze::emu::Ppu, yaze::gui::Canvas, yaze::test::DungeonRoomTest, yaze::test::MessageTest, yaze::test::OverworldTest, yaze::zelda3::DungeonObjectRenderer, yaze::zelda3::Inventory, yaze::zelda3::Room, and yaze::zelda3::RoomObject.
Public Member Functions | |
SharedRom ()=default | |
virtual | ~SharedRom ()=default |
std::shared_ptr< Rom > | shared_rom () |
auto | rom () |
Static Public Member Functions | |
static void | set_rom (Rom *rom) |
Static Public Attributes | |
static std::shared_ptr< Rom > | shared_rom_ = nullptr |
|
default |
|
virtualdefault |
|
inline |
Definition at line 377 of file rom.h.
References shared_rom_.
|
inline |
Definition at line 384 of file rom.h.
References rom(), and shared_rom_.
Referenced by yaze::zelda3::RoomObject::AddTiles(), yaze::zelda3::Inventory::BuildTileset(), yaze::zelda3::Room::CopyRoomGraphicsToBuffer(), yaze::zelda3::Inventory::Create(), yaze::editor::GfxGroupEditor::DrawBlocksetViewer(), yaze::gui::Canvas::DrawContextMenu(), yaze::editor::GfxGroupEditor::DrawPaletteViewer(), yaze::editor::GfxGroupEditor::DrawRoomsetViewer(), yaze::editor::GfxGroupEditor::DrawSpritesetViewer(), yaze::zelda3::Room::LoadAnimatedGraphics(), yaze::zelda3::Room::LoadChests(), yaze::zelda3::DungeonObjectRenderer::LoadObject(), yaze::zelda3::Room::LoadObjects(), yaze::zelda3::Room::LoadRoomGraphics(), yaze::zelda3::Room::LoadSprites(), yaze::editor::Tile16Editor::LoadTile8(), rom(), yaze::emu::Emulator::Run(), set_rom(), yaze::editor::Tile16Editor::SetCurrentTile(), yaze::test::DungeonRoomTest::SetUp(), yaze::test::MessageTest::SetUp(), yaze::zelda3::Subtype1::Subtype1(), yaze::zelda3::Subtype2::Subtype2(), yaze::zelda3::Subtype3::Subtype3(), yaze::editor::GfxGroupEditor::Update(), yaze::editor::Tile16Editor::UpdateBlockset(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inlinestatic |
Definition at line 392 of file rom.h.
References rom(), and shared_rom_.
Referenced by yaze::editor::EditorManager::OpenRomOrProject(), and yaze::editor::EditorManager::SetCurrentRom().
|
static |
Definition at line 400 of file rom.h.
Referenced by rom(), set_rom(), and shared_rom().