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