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::Ppu, yaze::gui::Canvas, yaze::test::DungeonRoomTest, yaze::test::MessageTest, and yaze::test::OverworldTest.
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 283 of file rom.h.
References shared_rom_.
|
inline |
Definition at line 290 of file rom.h.
References rom(), and shared_rom_.
Referenced by yaze::editor::GfxGroupEditor::DrawBlocksetViewer(), yaze::gui::Canvas::DrawContextMenu(), yaze::editor::GfxGroupEditor::DrawPaletteViewer(), yaze::editor::GfxGroupEditor::DrawRoomsetViewer(), yaze::editor::GfxGroupEditor::DrawSpritesetViewer(), yaze::editor::Tile16Editor::LoadTile8(), rom(), set_rom(), yaze::editor::Tile16Editor::SetCurrentTile(), yaze::test::DungeonRoomTest::SetUp(), yaze::test::MessageTest::SetUp(), yaze::editor::GfxGroupEditor::Update(), yaze::editor::Tile16Editor::UpdateBlockset(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inlinestatic |
Definition at line 298 of file rom.h.
References rom(), and shared_rom_.
Referenced by yaze::editor::EditorManager::OpenRomOrProject(), and yaze::editor::EditorManager::SetCurrentRom().
|
static |
Definition at line 306 of file rom.h.
Referenced by rom(), set_rom(), and shared_rom().