#pragma once #include "DNACommon.hpp" namespace DataSpec { class PAKEntryReadStream; struct TXTR { struct PaletteMeta : BigDNAVYaml { AT_DECL_EXPLICIT_DNA_YAMLV Value format = UINT_MAX; Value elementCount = 0; Value dolphinHash = 0; }; struct Meta : BigDNAVYaml { AT_DECL_EXPLICIT_DNA_YAMLV Value format = UINT_MAX; Value mips = 0; Value width = 0; Value height = 0; Value dolphinHash = 0; Value hasPalette = false; PaletteMeta palette; }; static bool Extract(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath); static bool Cook(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outPath); static bool CookPC(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outPath); static TXTR::Meta GetMetaData(PAKEntryReadStream& rs); }; } // namespace DataSpec