yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::core::PaletteCatalog Class Reference

#include <palette_catalog.h>

Public Member Functions

const std::vector< PaletteCatalogEntry > & entries () const
 
std::vector< const PaletteCatalogEntry * > Filter (std::string_view query, std::string_view world={}, std::string_view use={}) const
 

Static Public Member Functions

static absl::StatusOr< PaletteCatalog > Parse (std::string_view text)
 
static absl::StatusOr< PaletteCatalog > LoadForProject (const std::string &project_file, const std::string &catalog_file)
 
static absl::StatusOr< std::filesystem::path > ResolvePathForProject (const std::string &project_file, const std::string &catalog_file)
 

Private Attributes

std::vector< PaletteCatalogEntry > entries_
 

Detailed Description

Definition at line 38 of file palette_catalog.h.

Member Function Documentation

◆ Parse()

absl::StatusOr< PaletteCatalog > yaze::core::PaletteCatalog::Parse ( std::string_view text)
static

Definition at line 56 of file palette_catalog.cc.

References entries(), entries_, yaze::zelda3::GetPaletteGroupMetadata(), yaze::core::PaletteCatalogEntry::key, and yaze::core::PaletteCatalogUsage::name.

Referenced by LoadForProject().

Here is the call graph for this function:

◆ LoadForProject()

absl::StatusOr< PaletteCatalog > yaze::core::PaletteCatalog::LoadForProject ( const std::string & project_file,
const std::string & catalog_file )
static

Definition at line 154 of file palette_catalog.cc.

References Parse(), and ResolvePathForProject().

Referenced by yaze::editor::PaletteEditor::ReloadPaletteCatalog().

Here is the call graph for this function:

◆ ResolvePathForProject()

absl::StatusOr< std::filesystem::path > yaze::core::PaletteCatalog::ResolvePathForProject ( const std::string & project_file,
const std::string & catalog_file )
static

◆ entries()

const std::vector< PaletteCatalogEntry > & yaze::core::PaletteCatalog::entries ( ) const
inline

Definition at line 47 of file palette_catalog.h.

References entries_.

Referenced by Parse().

◆ Filter()

std::vector< const PaletteCatalogEntry * > yaze::core::PaletteCatalog::Filter ( std::string_view query,
std::string_view world = {},
std::string_view use = {} ) const

Definition at line 170 of file palette_catalog.cc.

References entries_.

Member Data Documentation

◆ entries_

std::vector<PaletteCatalogEntry> yaze::core::PaletteCatalog::entries_
private

Definition at line 53 of file palette_catalog.h.

Referenced by entries(), Filter(), and Parse().


The documentation for this class was generated from the following files: