mirror of https://github.com/AxioDL/metaforce.git
22 lines
714 B
C++
22 lines
714 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "DataSpec/DNACommon/PAK.hpp"
|
|
#include "DataSpec/DNACommon/MAPU.hpp"
|
|
#include "DNAMP1.hpp"
|
|
|
|
namespace DataSpec::DNAMP1 {
|
|
|
|
struct MAPU : DNAMAPU::MAPU {
|
|
static bool Extract(const SpecBase& dataSpec, PAKEntryReadStream& rs, const hecl::ProjectPath& outPath,
|
|
PAKRouter<PAKBridge>& pakRouter, const PAK::Entry& entry, bool force, hecl::blender::Token& btok,
|
|
std::function<void(const char*)> fileChanged) {
|
|
MAPU mapu;
|
|
mapu.read(rs);
|
|
hecl::blender::Connection& conn = btok.getBlenderConnection();
|
|
return DNAMAPU::ReadMAPUToBlender(conn, mapu, outPath, pakRouter, entry, force);
|
|
}
|
|
};
|
|
} // namespace DataSpec::DNAMP1
|