2015-11-02 18:45:39 +00:00
|
|
|
#ifndef __DNAMP2_MAPA_HPP__
|
|
|
|
#define __DNAMP2_MAPA_HPP__
|
|
|
|
|
2015-11-25 00:21:58 +00:00
|
|
|
#include "../DNACommon/PAK.hpp"
|
2015-12-06 03:05:34 +00:00
|
|
|
#include "../DNACommon/MAPA.hpp"
|
2015-11-25 00:21:58 +00:00
|
|
|
#include "DNAMP2.hpp"
|
2015-11-02 18:45:39 +00:00
|
|
|
|
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
namespace DNAMP2
|
|
|
|
{
|
2015-12-06 03:05:34 +00:00
|
|
|
struct MAPA : DNAMAPA::MAPA
|
2015-11-25 00:21:58 +00:00
|
|
|
{
|
|
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
|
|
PAKEntryReadStream& rs,
|
|
|
|
const HECL::ProjectPath& outPath,
|
|
|
|
PAKRouter<PAKBridge>& pakRouter,
|
|
|
|
const DNAMP1::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);
|
|
|
|
}
|
|
|
|
};
|
2015-11-02 18:45:39 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|