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

#include <game_data.h>

Collaboration diagram for yaze::zelda3::GameData:

Public Member Functions

 GameData ()=default
 
 GameData (Rom *rom)
 
Romrom () const
 
void set_rom (Rom *rom)
 
void Clear ()
 

Public Attributes

zelda3_version version = zelda3_version::US
 
std::string title
 
std::vector< uint8_t > graphics_buffer
 
std::array< std::vector< uint8_t >, kNumGfxSheetsraw_gfx_sheets
 
std::array< gfx::Bitmap, kNumGfxSheetsgfx_bitmaps
 
std::array< gfx::Bitmap, kNumLinkSheetslink_graphics
 
gfx::Bitmap font_graphics
 
gfx::PaletteGroupMap palette_groups
 
std::array< std::array< uint8_t, 8 >, kNumMainBlocksetsmain_blockset_ids
 
std::array< std::array< uint8_t, 4 >, kNumRoomBlocksetsroom_blockset_ids
 
std::array< std::array< uint8_t, 4 >, kNumSpritesetsspriteset_ids
 
std::array< std::array< uint8_t, 4 >, kNumPalettesetspaletteset_ids
 
GraphicsLoadDiagnostics diagnostics
 

Private Attributes

Romrom_ = nullptr
 

Detailed Description

Definition at line 68 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 71 of file game_data.h.

Member Function Documentation

◆ rom()

Rom * yaze::zelda3::GameData::rom ( ) const
inline

Definition at line 74 of file game_data.h.

References rom_.

Referenced by set_rom().

◆ set_rom()

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

Definition at line 75 of file game_data.h.

References rom(), and rom_.

Here is the call graph for this function:

◆ Clear()

void yaze::zelda3::GameData::Clear ( )
inline

Definition at line 104 of file game_data.h.

References yaze::gfx::PaletteGroupMap::clear(), graphics_buffer, palette_groups, and raw_gfx_sheets.

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

Here is the call graph for this function:

Member Data Documentation

◆ version

◆ title

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

Definition at line 79 of file game_data.h.

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

◆ graphics_buffer

◆ raw_gfx_sheets

std::array<std::vector<uint8_t>, kNumGfxSheets> yaze::zelda3::GameData::raw_gfx_sheets

Definition at line 83 of file game_data.h.

Referenced by Clear(), and yaze::zelda3::LoadGraphics().

◆ gfx_bitmaps

std::array<gfx::Bitmap, kNumGfxSheets> yaze::zelda3::GameData::gfx_bitmaps

◆ link_graphics

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

Definition at line 85 of file game_data.h.

◆ font_graphics

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

Definition at line 86 of file game_data.h.

◆ palette_groups

gfx::PaletteGroupMap yaze::zelda3::GameData::palette_groups

Definition at line 89 of file game_data.h.

Referenced by yaze::editor::PaletteControlsPanel::ApplyPaletteToAllSheets(), yaze::editor::Tile16Editor::ApplyPaletteToCurrentTile16Bitmap(), yaze::editor::PaletteControlsPanel::ApplyPaletteToSheet(), yaze::zelda3::Inventory::BuildTileset(), Clear(), yaze::zelda3::TitleScreen::Create(), yaze::editor::GraphicsEditor::DecompressImportData(), yaze::editor::GraphicsEditor::DecompressSuperDonkey(), yaze::gui::PaletteEditorWidget::Draw(), yaze::gui::PaletteEditorWidget::DrawColorPicker(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonObjectSelector::DrawObjectAssetBrowser(), yaze::editor::PaletteControlsPanel::DrawPaletteDisplay(), yaze::editor::PaletteEditor::DrawPaletteGroup(), yaze::editor::palette_utility::DrawPalettePreview(), yaze::gui::PaletteEditorWidget::DrawPaletteSelector(), yaze::editor::PalettesetEditorPanel::DrawPalettesetEditor(), 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::cli::HandlePaletteExportLegacy(), yaze::cli::HandlePaletteImportLegacy(), yaze::editor::MessageEditor::Initialize(), yaze::gfx::PaletteManager::Initialize(), yaze::emu::render::EmulatorRenderService::InjectRoomContext(), yaze::editor::DungeonEditorV2::Load(), yaze::editor::ScreenEditor::Load(), yaze::editor::DungeonRoomLoader::LoadAllRooms(), yaze::zelda3::LoadDungeonMapGfxFromBinary(), yaze::zelda3::LoadDungeonMapTile16(), yaze::zelda3::LoadGraphics(), 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::editor::SpriteEditor::LoadSpritePalettes(), yaze::editor::DungeonEditorV2::OnRoomSelected(), yaze::editor::Tile16Editor::PreviewPaletteChange(), yaze::editor::Tile16Editor::RefreshAllPalettes(), yaze::emu::render::EmulatorRenderService::RenderDungeonObjectStatic(), yaze::zelda3::Room::RenderObjectsToBackground(), yaze::zelda3::Room::RenderRoomGraphics(), yaze::test::RomDependentTestSuite::RunTile16EditorTest(), yaze::zelda3::SaveGameData(), yaze::editor::DungeonObjectSelector::SelectObject(), yaze::zelda3::palette_internal::SetColorsPalette(), yaze::editor::Tile16Editor::SetCurrentTile(), yaze::gui::DungeonObjectEmulatorPreview::TriggerEmulatedRender(), yaze::gui::DungeonObjectEmulatorPreview::TriggerStaticRender(), yaze::editor::GfxGroupEditor::UpdateCurrentPalette(), yaze::editor::Tile16Editor::UpdateLivePreview(), yaze::editor::Tile16Editor::UpdateTile8Palette(), and yaze_get_color_from_paletteset().

◆ main_blockset_ids

std::array<std::array<uint8_t, 8>, kNumMainBlocksets> yaze::zelda3::GameData::main_blockset_ids

◆ room_blockset_ids

std::array<std::array<uint8_t, 4>, kNumRoomBlocksets> yaze::zelda3::GameData::room_blockset_ids

◆ spriteset_ids

std::array<std::array<uint8_t, 4>, kNumSpritesets> yaze::zelda3::GameData::spriteset_ids

◆ paletteset_ids

◆ diagnostics

GraphicsLoadDiagnostics yaze::zelda3::GameData::diagnostics

Definition at line 102 of file game_data.h.

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

◆ rom_

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

Definition at line 112 of file game_data.h.

Referenced by rom(), and set_rom().


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