metaforce/DataSpec/DNAMP2/MAPA.hpp

34 lines
881 B
C++
Raw Normal View History

#ifndef __DNAMP2_MAPA_HPP__
#define __DNAMP2_MAPA_HPP__
#include "../DNACommon/PAK.hpp"
2015-12-06 03:05:34 +00:00
#include "../DNACommon/MAPA.hpp"
#include "DNAMP2.hpp"
2016-02-13 09:02:47 +00:00
namespace DataSpec
{
namespace DNAMP2
{
2015-12-06 03:05:34 +00:00
struct MAPA : DNAMAPA::MAPA
{
static bool Extract(const SpecBase& dataSpec,
PAKEntryReadStream& rs,
2016-03-04 23:04:53 +00:00
const hecl::ProjectPath& outPath,
PAKRouter<PAKBridge>& pakRouter,
const DNAMP1::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)
{
MAPA mapa;
mapa.read(rs);
2016-04-01 04:25:00 +00:00
hecl::BlenderConnection& conn = btok.getBlenderConnection();
return DNAMAPA::ReadMAPAToBlender(conn, mapa, outPath, pakRouter, entry, force);
}
};
}
}
#endif