metaforce/DataSpec/DNAMP3/MAPA.hpp

43 lines
1.2 KiB
C++
Raw Normal View History

#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
{
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,
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)
{
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);
}
2017-03-20 05:09:53 +00:00
static bool Cook(const hecl::BlenderConnection::DataStream::MapArea& mapa, const hecl::ProjectPath& out)
{
return DNAMAPA::Cook<MAPA>(mapa, out);
}
static uint32_t Version() { return 5; }
using Header = DNAMAPA::MAPA::HeaderMP3;
using MappableObject = DNAMAPA::MAPA::MappableObjectMP3;
};
}
}
#endif