mirror of https://github.com/AxioDL/metaforce.git
34 lines
881 B
C++
34 lines
881 B
C++
#ifndef __DNAMP2_MAPA_HPP__
|
|
#define __DNAMP2_MAPA_HPP__
|
|
|
|
#include "../DNACommon/PAK.hpp"
|
|
#include "../DNACommon/MAPA.hpp"
|
|
#include "DNAMP2.hpp"
|
|
|
|
namespace DataSpec
|
|
{
|
|
namespace DNAMP2
|
|
{
|
|
struct MAPA : DNAMAPA::MAPA
|
|
{
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
PAKEntryReadStream& rs,
|
|
const hecl::ProjectPath& outPath,
|
|
PAKRouter<PAKBridge>& pakRouter,
|
|
const DNAMP1::PAK::Entry& entry,
|
|
bool force,
|
|
hecl::BlenderToken& btok,
|
|
std::function<void(const hecl::SystemChar*)> fileChanged)
|
|
{
|
|
MAPA mapa;
|
|
mapa.read(rs);
|
|
hecl::BlenderConnection& conn = btok.getBlenderConnection();
|
|
return DNAMAPA::ReadMAPAToBlender(conn, mapa, outPath, pakRouter, entry, force);
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|