2017-03-20 05:09:53 +00:00
|
|
|
#ifndef __DNAMP2_MAPU_HPP__
|
|
|
|
#define __DNAMP2_MAPU_HPP__
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2018-06-29 20:21:36 +00:00
|
|
|
#include "DataSpec/DNACommon/PAK.hpp"
|
|
|
|
#include "DataSpec/DNACommon/MAPU.hpp"
|
2017-03-20 05:09:53 +00:00
|
|
|
#include "DNAMP2.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP2
|
2017-03-20 05:09:53 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
struct MAPU : DNAMAPU::MAPU
|
|
|
|
{
|
|
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
|
|
PAKEntryReadStream& rs,
|
|
|
|
const hecl::ProjectPath& outPath,
|
|
|
|
PAKRouter<PAKBridge>& pakRouter,
|
2018-09-03 00:46:16 +00:00
|
|
|
const DNAMP2::PAK::Entry& entry,
|
2017-03-20 05:09:53 +00:00
|
|
|
bool force,
|
2017-12-29 08:08:12 +00:00
|
|
|
hecl::blender::Token& btok,
|
2017-03-20 05:09:53 +00:00
|
|
|
std::function<void(const hecl::SystemChar*)> fileChanged)
|
|
|
|
{
|
|
|
|
MAPU mapu;
|
|
|
|
mapu.read(rs);
|
2017-12-29 08:08:12 +00:00
|
|
|
hecl::blender::Connection& conn = btok.getBlenderConnection();
|
2017-03-20 05:09:53 +00:00
|
|
|
return DNAMAPU::ReadMAPUToBlender(conn, mapu, outPath, pakRouter, entry, force);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|