2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

Initial PATH extraction support

This commit is contained in:
Jack Andersen
2018-02-23 20:17:17 -10:00
parent e4ff23c279
commit 96662eb47c
13 changed files with 242 additions and 7 deletions

View File

@@ -2,11 +2,15 @@
#define __DNACOMMON_PATH_HPP__
#include "../DNACommon/DNACommon.hpp"
#include "../DNACommon/PAK.hpp"
#include "DNAMP1.hpp"
namespace DataSpec
namespace DataSpec::DNAMP1
{
struct PATH : BigDNA
{
using PathMesh = hecl::blender::PathMesh;
AT_DECL_DNA
Value<atUint32> version;
@@ -66,6 +70,23 @@ struct PATH : BigDNA
};
Value<atUint32> octreeNodeCount;
Vector<OctreeNode, DNA_COUNT(octreeNodeCount)> octree;
void sendToBlender(hecl::blender::Connection& conn, std::string_view entryName,
const zeus::CMatrix4f* xf);
static bool Extract(const SpecBase& dataSpec,
PAKEntryReadStream& rs,
const hecl::ProjectPath& outPath,
PAKRouter<PAKBridge>& pakRouter,
const PAK::Entry& entry,
bool force,
hecl::blender::Token& btok,
std::function<void(const hecl::SystemChar*)> fileChanged);
static bool Cook(const hecl::ProjectPath& outPath,
const hecl::ProjectPath& inPath,
const PathMesh& mesh,
hecl::blender::Connection* conn = nullptr);
};
}