#pragma once #include "DataSpec/DNACommon/PAK.hpp" #include "DataSpec/DNACommon/MAPA.hpp" #include "DNAMP2.hpp" namespace DataSpec::DNAMP2 { struct MAPA : DNAMAPA::MAPA { static bool Extract(const SpecBase& dataSpec, PAKEntryReadStream& rs, const hecl::ProjectPath& outPath, PAKRouter& pakRouter, const DNAMP2::PAK::Entry& entry, bool force, hecl::blender::Token& btok, std::function fileChanged) { MAPA mapa; mapa.read(rs); hecl::blender::Connection& conn = btok.getBlenderConnection(); return DNAMAPA::ReadMAPAToBlender(conn, mapa, outPath, pakRouter, entry, force); } static bool Cook(const hecl::blender::MapArea& mapa, const hecl::ProjectPath& out) { return DNAMAPA::Cook(mapa, out); } static uint32_t Version() { return 3; } using Header = DNAMAPA::MAPA::HeaderMP2; using MappableObject = DNAMAPA::MAPA::MappableObjectMP1_2; }; } // namespace DataSpec::DNAMP2