2015-07-25 03:43:49 +00:00
|
|
|
#ifndef _DNAMP1_CMDL_HPP_
|
|
|
|
#define _DNAMP1_CMDL_HPP_
|
|
|
|
|
|
|
|
#include "../DNACommon/DNACommon.hpp"
|
2015-08-10 01:53:24 +00:00
|
|
|
#include "../DNACommon/CMDL.hpp"
|
2015-07-25 03:43:49 +00:00
|
|
|
#include "CMDLMaterials.hpp"
|
2015-08-04 02:14:47 +00:00
|
|
|
#include "DNAMP1.hpp"
|
2015-08-13 07:29:00 +00:00
|
|
|
#include "CINF.hpp"
|
|
|
|
#include "CSKR.hpp"
|
2015-07-25 03:43:49 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
#include <athena/FileReader.hpp>
|
2015-10-21 01:34:35 +00:00
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP1
|
2015-07-25 03:43:49 +00:00
|
|
|
{
|
|
|
|
|
2015-07-28 02:24:36 +00:00
|
|
|
struct CMDL
|
2015-07-25 03:43:49 +00:00
|
|
|
{
|
2015-08-05 21:46:07 +00:00
|
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
|
|
PAKEntryReadStream& rs,
|
2016-03-04 23:04:53 +00:00
|
|
|
const hecl::ProjectPath& outPath,
|
2015-08-04 21:35:41 +00:00
|
|
|
PAKRouter<PAKBridge>& pakRouter,
|
2015-08-11 23:32:02 +00:00
|
|
|
const PAK::Entry& entry,
|
2015-09-03 01:45:15 +00:00
|
|
|
bool force,
|
2017-12-29 08:08:12 +00:00
|
|
|
hecl::blender::Token& btok,
|
|
|
|
std::function<void(const hecl::SystemChar*)> fileChanged);
|
2015-10-07 01:17:17 +00:00
|
|
|
|
2015-10-27 00:19:03 +00:00
|
|
|
static void Name(const SpecBase& dataSpec,
|
|
|
|
PAKEntryReadStream& rs,
|
|
|
|
PAKRouter<PAKBridge>& pakRouter,
|
|
|
|
PAK::Entry& entry)
|
|
|
|
{
|
|
|
|
DNACMDL::NameCMDL<PAKRouter<PAKBridge>, MaterialSet>(rs, pakRouter, entry, dataSpec);
|
|
|
|
}
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
static bool Cook(const hecl::ProjectPath& outPath,
|
|
|
|
const hecl::ProjectPath& inPath,
|
2017-12-29 08:08:12 +00:00
|
|
|
const DNACMDL::Mesh& mesh);
|
2015-11-14 02:28:45 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
static bool HMDLCook(const hecl::ProjectPath& outPath,
|
|
|
|
const hecl::ProjectPath& inPath,
|
2017-12-29 08:08:12 +00:00
|
|
|
const DNACMDL::Mesh& mesh);
|
2015-07-25 03:43:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _DNAMP1_CMDL_HPP_
|