2015-12-06 07:28:29 +00:00
|
|
|
#ifndef __DNAMP3_MAPA_HPP__
|
|
|
|
#define __DNAMP3_MAPA_HPP__
|
|
|
|
|
|
|
|
#include "../DNACommon/PAK.hpp"
|
|
|
|
#include "../DNACommon/MAPA.hpp"
|
|
|
|
#include "DNAMP3.hpp"
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
namespace DataSpec
|
2015-12-06 07:28:29 +00:00
|
|
|
{
|
|
|
|
namespace DNAMP3
|
|
|
|
{
|
|
|
|
struct MAPA : DNAMAPA::MAPA
|
|
|
|
{
|
|
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
|
|
PAKEntryReadStream& rs,
|
2016-03-04 23:04:53 +00:00
|
|
|
const hecl::ProjectPath& outPath,
|
2015-12-06 07:28:29 +00:00
|
|
|
PAKRouter<PAKBridge>& pakRouter,
|
|
|
|
const PAK::Entry& entry,
|
|
|
|
bool force,
|
2016-03-04 23:04:53 +00:00
|
|
|
std::function<void(const hecl::SystemChar*)> fileChanged)
|
2015-12-06 07:28:29 +00:00
|
|
|
{
|
|
|
|
MAPA mapa;
|
|
|
|
mapa.read(rs);
|
2016-03-04 23:04:53 +00:00
|
|
|
hecl::BlenderConnection& conn = hecl::BlenderConnection::SharedConnection();
|
2015-12-06 07:28:29 +00:00
|
|
|
return DNAMAPA::ReadMAPAToBlender(conn, mapa, outPath, pakRouter, entry, force);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|