2015-08-08 00:08:16 +00:00
|
|
|
#ifndef __DNAMP1_MAPA_HPP__
|
|
|
|
#define __DNAMP1_MAPA_HPP__
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2015-10-26 02:31:09 +00:00
|
|
|
#include "../DNACommon/PAK.hpp"
|
|
|
|
#include "../DNACommon/MAPA.hpp"
|
|
|
|
#include "DNAMP1.hpp"
|
2015-08-08 00:08:16 +00:00
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
namespace DataSpec
|
2015-08-08 00:08:16 +00:00
|
|
|
{
|
|
|
|
namespace DNAMP1
|
|
|
|
{
|
2015-10-26 02:31:09 +00:00
|
|
|
|
2015-12-06 03:05:34 +00:00
|
|
|
struct MAPA : DNAMAPA::MAPA
|
|
|
|
{
|
2015-10-26 02:31:09 +00:00
|
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
|
|
PAKEntryReadStream& rs,
|
2016-03-04 23:04:53 +00:00
|
|
|
const hecl::ProjectPath& outPath,
|
2015-10-26 02:31:09 +00:00
|
|
|
PAKRouter<PAKBridge>& pakRouter,
|
|
|
|
const PAK::Entry& entry,
|
|
|
|
bool force,
|
2016-04-01 04:25:00 +00:00
|
|
|
hecl::BlenderToken& btok,
|
2016-03-04 23:04:53 +00:00
|
|
|
std::function<void(const hecl::SystemChar*)> fileChanged)
|
2015-10-26 02:31:09 +00:00
|
|
|
{
|
|
|
|
MAPA mapa;
|
|
|
|
mapa.read(rs);
|
2016-04-01 04:25:00 +00:00
|
|
|
hecl::BlenderConnection& conn = btok.getBlenderConnection();
|
2015-10-26 02:31:09 +00:00
|
|
|
return DNAMAPA::ReadMAPAToBlender(conn, mapa, outPath, pakRouter, entry, force);
|
|
|
|
}
|
2015-08-08 00:08:16 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|