#include <game_data.h>

Public Member Functions | |
| GameData ()=default | |
| GameData (Rom *rom) | |
| Rom * | rom () const |
| void | set_rom (Rom *rom) |
| void | Clear () |
Public Member Functions inherited from yaze::zelda3::GraphicsSheetStoreHolder | |
| GraphicsSheetStoreHolder ()=default | |
| GraphicsSheetStoreHolder (const GraphicsSheetStoreHolder &other) | |
| GraphicsSheetStoreHolder (GraphicsSheetStoreHolder &&other) noexcept | |
| GraphicsSheetStoreHolder & | operator= (const GraphicsSheetStoreHolder &other) |
| GraphicsSheetStoreHolder & | operator= (GraphicsSheetStoreHolder &&other) noexcept |
Private Attributes | |
| Rom * | rom_ = nullptr |
Definition at line 74 of file game_data.h.
|
default |
|
inlineexplicit |
Definition at line 77 of file game_data.h.
|
inline |
Definition at line 80 of file game_data.h.
References rom_.
Referenced by yaze::gfx::PaletteManager::ActivateSession(), yaze::gfx::PaletteManager::IsInitialized(), yaze::gfx::PaletteManager::IsSessionActive(), yaze::gfx::PaletteManager::SaveGroup(), and set_rom().
|
inline |
Definition at line 81 of file game_data.h.
Referenced by yaze::zelda3::LoadGameData(), and yaze::cli::handlers::anonymous_namespace{palette_commands.cc}::LoadPalettes().

|
inline |
Definition at line 120 of file game_data.h.
References yaze::gfx::PaletteGroupMap::clear(), yaze::zelda3::GraphicsSheetStore::Clear(), gfx_groups_loaded, gfx_main_group_address, palette_groups, pit_damage_table, raw_gfx_sheets, room_default_entrances, and yaze::zelda3::GraphicsSheetStoreHolder::sheet_store.
Referenced by yaze::zelda3::LoadGameData().

| zelda3_version yaze::zelda3::GameData::version = zelda3_version::US |
Definition at line 84 of file game_data.h.
Referenced by yaze::zelda3::LoadGfxGroups(), yaze::zelda3::LoadGraphics(), yaze::zelda3::LoadMetadata(), yaze::editor::DungeonEditorV2::PreflightRoomTransfer(), yaze::editor::GraphicsEditor::PrepareGraphicsSave(), yaze::zelda3::anonymous_namespace{game_data.cc}::ResolveGfxGroupTables(), yaze::zelda3::Room::version_constants(), yaze::zelda3::Overworld::version_constants(), and yaze::zelda3::OverworldMap::version_constants().
| std::string yaze::zelda3::GameData::title |
Definition at line 85 of file game_data.h.
Referenced by yaze::zelda3::LoadMetadata().
| std::array<std::vector<uint8_t>, kNumGfxSheets> yaze::zelda3::GameData::raw_gfx_sheets |
Definition at line 89 of file game_data.h.
Referenced by Clear(), and yaze::zelda3::ProcessSheetBitmap().
| std::array<gfx::Bitmap, kNumGfxSheets> yaze::zelda3::GameData::gfx_bitmaps |
Definition at line 90 of file game_data.h.
Referenced by yaze::zelda3::ProcessSheetBitmap(), yaze::editor::RomSession::ReloadGraphicsDisplay(), yaze::test::GraphicsEditorTestSuite::RunPixelEditingTest(), yaze::test::RomDependentTestSuite::RunRomGraphicsExtractionTest(), and yaze::editor::SetGraphicsPreviewPalette().
| std::array<gfx::Bitmap, kNumLinkSheets> yaze::zelda3::GameData::link_graphics |
Definition at line 91 of file game_data.h.
| gfx::Bitmap yaze::zelda3::GameData::font_graphics |
Definition at line 92 of file game_data.h.
| gfx::PaletteGroupMap yaze::zelda3::GameData::palette_groups |
Definition at line 95 of file game_data.h.
Referenced by yaze::zelda3::BuildDungeonRenderPaletteGroupFromGameData(), yaze::zelda3::BuildDungeonSpriteRenderPalette(), yaze::zelda3::Inventory::BuildTileset(), Clear(), yaze::editor::usage_preview::SpriteUsagePreview::Configure(), yaze::zelda3::TitleScreen::Create(), yaze::editor::GraphicsEditor::DecompressImportData(), yaze::editor::GraphicsEditor::DecompressSuperDonkey(), yaze::gui::PaletteEditorWidget::Draw(), yaze::gui::PaletteEditorWidget::DrawColorPicker(), yaze::editor::DrawGraphicsPreviewPaletteSelector(), yaze::editor::PaletteControlsPanel::DrawPaletteDisplay(), yaze::editor::PaletteEditor::DrawPaletteGroup(), yaze::editor::palette_utility::DrawPalettePreview(), yaze::gui::PaletteEditorWidget::DrawPaletteSelector(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), yaze::editor::PaletteControlsPanel::DrawPresets(), yaze::cli::handlers::PaletteGetColorsCommandHandler::Execute(), yaze::cli::handlers::PaletteSetColorCommandHandler::Execute(), yaze::cli::handlers::PaletteAnalyzeCommandHandler::Execute(), yaze::gfx::PaletteManager::GetGroup(), yaze::gfx::PaletteManager::GetMutableGroup(), yaze::editor::OverworldMainPalettePanel::GetPaletteGroup(), yaze::editor::OverworldAnimatedPalettePanel::GetPaletteGroup(), yaze::editor::DungeonMainPalettePanel::GetPaletteGroup(), yaze::editor::SpritePalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux1PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux2PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux3PalettePanel::GetPaletteGroup(), yaze::editor::EquipmentPalettePanel::GetPaletteGroup(), getRomPaletteGroup(), yaze::editor::RoomMatrixContent::GetRoomColor(), yaze::editor::DungeonEditorV2::HandleDungeonPaletteChanged(), yaze::cli::HandlePaletteExportLegacy(), yaze::cli::HandlePaletteImportLegacy(), yaze::gfx::PaletteManager::Initialize(), yaze::emu::render::EmulatorRenderService::InjectRoomContext(), yaze::editor::DungeonEditorV2::Load(), yaze::editor::ScreenEditor::Load(), yaze::editor::DungeonRoomLoader::LoadAllRooms(), yaze::editor::DungeonCanvasViewer::LoadAndRenderRoomGraphics(), yaze::zelda3::LoadDungeonMapGfxFromBinary(), yaze::zelda3::LoadDungeonMapTile16(), yaze::zelda3::Room::LoadLayoutTilesToBuffer(), yaze::zelda3::OverworldMap::LoadPalette(), yaze::emu::render::EmulatorRenderService::LoadPaletteIntoCgram(), yaze::zelda3::LoadPalettes(), yaze::gui::CanvasUtils::LoadROMPaletteGroups(), yaze::gui::PaletteEditorWidget::LoadROMPalettes(), yaze::zelda3::anonymous_namespace{gfx_sheet_png.cc}::LoadRoomWithPalettes(), yaze::editor::SpriteEditor::LoadSpritePalettes(), yaze::editor::MakeDungeonMapTilesGfxEditContext(), yaze::editor::DungeonEditorV2::OnRoomSelected(), yaze::editor::DungeonEditorV2::OpenObjectTileEditorForObject(), yaze::gui::anonymous_namespace{palette_editor_widget.cc}::PaletteGroupForTarget(), yaze::editor::GfxGroupEditor::PrepareSheetPreview(), yaze::zelda3::ProcessSheetBitmap(), yaze::zelda3::ReadPaletteColor(), yaze::editor::DungeonEditorV2::RefreshRomBackedState(), yaze::editor::DungeonEditorV2::RefreshRoomMetadataViews(), yaze::editor::RenderDungeonMapTilesGfxPreview(), yaze::emu::render::EmulatorRenderService::RenderDungeonObjectStatic(), yaze::zelda3::Room::RenderObjectsToBackground(), yaze::zelda3::Room::RenderRoomGraphics(), yaze::editor::Tile16EditSession::ResolveDisplayPalette(), yaze::zelda3::Room::ResolveDungeonPaletteId(), yaze::editor::MessageEditor::ResolveFontPalette(), yaze::editor::ResolveGraphicsPreviewPalette(), yaze::zelda3::ResolveMenuPaletteFromHud(), yaze::zelda3::ResolveRoomSheetPalette(), yaze::zelda3::RoomBackgroundSheetPalette(), yaze::test::GraphicsEditorTestSuite::RunPaletteEditingTest(), yaze::test::RomDependentTestSuite::RunTile16EditorTest(), yaze::zelda3::SaveGameData(), yaze::zelda3::palette_internal::SetColorsPalette(), yaze::gui::DungeonObjectEmulatorPreview::TriggerEmulatedRender(), yaze::gui::DungeonObjectEmulatorPreview::TriggerStaticRender(), yaze::editor::GfxGroupEditor::UpdateCurrentPalette(), and yaze_get_color_from_paletteset().
| std::array<std::array<uint8_t, 8>, kNumMainBlocksets> yaze::zelda3::GameData::main_blockset_ids {} |
Definition at line 97 of file game_data.h.
Referenced by yaze::editor::GfxGroupEditor::DrawAssignmentControls(), yaze::editor::GfxGroupEditor::DrawBlocksetViewer(), yaze::editor::GfxGroupEditor::DrawSheetPicker(), yaze::editor::GfxGroupEditor::EditGraphicsSheet(), yaze::editor::UsagePreviewView::EnsureTables(), yaze::zelda3::anonymous_namespace{game_data.cc}::ForEachGfxGroupByte(), yaze::zelda3::LoadGfxGroups(), yaze::zelda3::Room::LoadRoomGraphics(), yaze::editor::DungeonEditorV2::ResolveDungeonRenderContextForRoom(), yaze::zelda3::OverworldMap::ResolveMainGraphicsGroup(), yaze::zelda3::ResolveRoomBackgroundSet(), yaze::zelda3::ResolveRoomMainBlockset(), and yaze::zelda3::OverworldMap::UsesSessionMainGraphicsGroup().
| std::array<std::array<uint8_t, 4>, kNumRoomBlocksets> yaze::zelda3::GameData::room_blockset_ids {} |
Definition at line 98 of file game_data.h.
Referenced by yaze::zelda3::DescribeMainGroupUsage(), yaze::editor::GfxGroupEditor::DrawAssignmentControls(), yaze::editor::GfxGroupEditor::DrawRoomsetViewer(), yaze::editor::GfxGroupEditor::DrawSheetPicker(), yaze::editor::GfxGroupEditor::EditGraphicsSheet(), yaze::editor::DungeonEditorV2::EditRoomGraphicsSheet(), yaze::editor::UsagePreviewView::EnsureTables(), yaze::zelda3::anonymous_namespace{game_data.cc}::ForEachGfxGroupByte(), yaze::zelda3::LoadGfxGroups(), yaze::zelda3::Room::LoadRoomGraphics(), yaze::zelda3::OverworldMap::ResolveAreaGraphicsGroup(), yaze::zelda3::ResolveRoomBackgroundSet(), and yaze::zelda3::OverworldMap::UsesSessionAreaGraphicsGroup().
| std::array<std::array<uint8_t, 4>, kNumSpritesets> yaze::zelda3::GameData::spriteset_ids {} |
Definition at line 99 of file game_data.h.
Referenced by yaze::editor::usage_preview::SpriteUsagePreview::Configure(), yaze::editor::UsagePreviewView::Draw(), yaze::editor::SpriteEditor::DrawSpritesetPicker(), yaze::editor::GfxGroupEditor::DrawSpritesetViewer(), yaze::editor::UsagePreviewView::EnsureTables(), yaze::zelda3::anonymous_namespace{game_data.cc}::ForEachGfxGroupByte(), yaze::zelda3::LoadGfxGroups(), yaze::zelda3::Room::LoadRoomGraphics(), yaze::zelda3::OverworldMap::ResolveSpriteGraphicsGroup(), and yaze::zelda3::OverworldMap::UsesSessionSpriteGraphicsGroup().
| bool yaze::zelda3::GameData::gfx_groups_loaded = false |
Definition at line 101 of file game_data.h.
Referenced by Clear(), yaze::zelda3::DescribeMainGroupUsage(), yaze::zelda3::DescribeRoomsetUsage(), yaze::editor::GfxGroupEditor::DrawAssignmentControls(), yaze::editor::GfxGroupEditor::EditGraphicsSheet(), yaze::zelda3::LoadGfxGroups(), yaze::zelda3::OverworldMap::SourceSheetsChanged(), yaze::zelda3::OverworldMap::UsesSessionAreaGraphicsGroup(), yaze::zelda3::OverworldMap::UsesSessionMainGraphicsGroup(), and yaze::zelda3::OverworldMap::UsesSessionSpriteGraphicsGroup().
| uint32_t yaze::zelda3::GameData::gfx_main_group_address = 0 |
Definition at line 102 of file game_data.h.
Referenced by Clear(), yaze::zelda3::LoadGfxGroups(), and yaze::zelda3::OverworldMap::UsesSessionMainGraphicsGroup().
| std::array<std::array<uint8_t, 4>, kNumPalettesets> yaze::zelda3::GameData::paletteset_ids {} |
Definition at line 108 of file game_data.h.
Referenced by yaze::zelda3::BuildDungeonSpriteRenderPalette(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), yaze::zelda3::anonymous_namespace{game_data.cc}::ForEachGfxGroupByte(), yaze::zelda3::LoadGfxGroups(), and yaze::zelda3::Room::ResolveDungeonPaletteId().
| GraphicsLoadDiagnostics yaze::zelda3::GameData::diagnostics |
Definition at line 111 of file game_data.h.
Referenced by yaze::zelda3::LoadGraphics().
| PitDamageTable yaze::zelda3::GameData::pit_damage_table |
Definition at line 114 of file game_data.h.
Referenced by yaze::editor::DungeonEditorV2::BeginSaveTransaction(), Clear(), yaze::editor::DungeonEditorV2::HasPendingDungeonChanges(), yaze::editor::DungeonEditorV2::Initialize(), yaze::zelda3::LoadGameData(), yaze::editor::DungeonEditorV2::RollbackSaveTransaction(), yaze::editor::DungeonEditorV2::Save(), and yaze::editor::DungeonEditorV2::ValidateSaveScope().
| std::vector<RoomDefaultEntrance> yaze::zelda3::GameData::room_default_entrances |
Definition at line 118 of file game_data.h.
Referenced by Clear(), yaze::zelda3::LoadGameData(), yaze::editor::DungeonEditorV2::ResolveDungeonRenderContextForRoom(), yaze::zelda3::ResolveRoomMainBlockset(), and yaze::zelda3::ResolveRoomSheetPalette().
|
private |
Definition at line 133 of file game_data.h.