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

#include <game_data.h>

Inheritance diagram for yaze::zelda3::GameData:

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
 

Public Attributes

zelda3_version version = zelda3_version::US
 
std::string title
 
std::array< std::vector< uint8_t >, kNumGfxSheets > raw_gfx_sheets
 
std::array< gfx::Bitmap, kNumGfxSheets > gfx_bitmaps
 
std::array< gfx::Bitmap, kNumLinkSheets > link_graphics
 
gfx::Bitmap font_graphics
 
gfx::PaletteGroupMap palette_groups
 
std::array< std::array< uint8_t, 8 >, kNumMainBlocksets > main_blockset_ids {}
 
std::array< std::array< uint8_t, 4 >, kNumRoomBlocksets > room_blockset_ids {}
 
std::array< std::array< uint8_t, 4 >, kNumSpritesets > spriteset_ids {}
 
bool gfx_groups_loaded = false
 
uint32_t gfx_main_group_address = 0
 
std::array< std::array< uint8_t, 4 >, kNumPalettesets > paletteset_ids {}
 
GraphicsLoadDiagnostics diagnostics
 
PitDamageTable pit_damage_table
 
std::vector< RoomDefaultEntrance > room_default_entrances
 
- Public Attributes inherited from yaze::zelda3::GraphicsSheetStoreHolder
GraphicsSheetStore sheet_store
 
std::vector< uint8_t > & graphics_buffer = sheet_store.mutable_pixels()
 Legacy name for sheet_store.mutable_pixels().
 

Private Attributes

Rom * rom_ = nullptr
 

Detailed Description

Definition at line 74 of file game_data.h.

Constructor & Destructor Documentation

◆ GameData() [1/2]

yaze::zelda3::GameData::GameData ( )
default

◆ GameData() [2/2]

yaze::zelda3::GameData::GameData ( Rom * rom)
inlineexplicit

Definition at line 77 of file game_data.h.

Member Function Documentation

◆ rom()

◆ set_rom()

void yaze::zelda3::GameData::set_rom ( Rom * rom)
inline

Definition at line 81 of file game_data.h.

References rom(), and rom_.

Referenced by yaze::zelda3::LoadGameData(), and yaze::cli::handlers::anonymous_namespace{palette_commands.cc}::LoadPalettes().

Here is the call graph for this function:

◆ Clear()

Member Data Documentation

◆ version

◆ title

std::string yaze::zelda3::GameData::title

Definition at line 85 of file game_data.h.

Referenced by yaze::zelda3::LoadMetadata().

◆ raw_gfx_sheets

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().

◆ gfx_bitmaps

◆ link_graphics

std::array<gfx::Bitmap, kNumLinkSheets> yaze::zelda3::GameData::link_graphics

Definition at line 91 of file game_data.h.

◆ font_graphics

gfx::Bitmap yaze::zelda3::GameData::font_graphics

Definition at line 92 of file game_data.h.

◆ palette_groups

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().

◆ main_blockset_ids

◆ room_blockset_ids

◆ spriteset_ids

◆ gfx_groups_loaded

◆ gfx_main_group_address

uint32_t yaze::zelda3::GameData::gfx_main_group_address = 0

◆ paletteset_ids

◆ diagnostics

GraphicsLoadDiagnostics yaze::zelda3::GameData::diagnostics

Definition at line 111 of file game_data.h.

Referenced by yaze::zelda3::LoadGraphics().

◆ pit_damage_table

◆ room_default_entrances

◆ rom_

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

Definition at line 133 of file game_data.h.

Referenced by rom(), and set_rom().


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