mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 15:41:48 +00:00
Humungous refactor
This commit is contained in:
@@ -9,30 +9,30 @@ namespace DataSpec
|
||||
namespace DNAMP1
|
||||
{
|
||||
|
||||
extern LogVisor::LogModule Log;
|
||||
extern logvisor::Module Log;
|
||||
|
||||
/* MP1-specific, one-shot PAK traversal/extraction class */
|
||||
class PAKBridge
|
||||
{
|
||||
HECL::Database::Project& m_project;
|
||||
const NOD::Node& m_node;
|
||||
hecl::Database::Project& m_project;
|
||||
const nod::Node& m_node;
|
||||
PAK m_pak;
|
||||
public:
|
||||
bool m_doExtract;
|
||||
using Level = Level<UniqueID32>;
|
||||
std::unordered_map<UniqueID32, Level> m_levelDeps;
|
||||
HECL::SystemString m_levelString;
|
||||
hecl::SystemString m_levelString;
|
||||
|
||||
PAKBridge(HECL::Database::Project& project,
|
||||
const NOD::Node& node,
|
||||
PAKBridge(hecl::Database::Project& project,
|
||||
const nod::Node& node,
|
||||
bool doExtract=true);
|
||||
void build();
|
||||
static ResExtractor<PAKBridge> LookupExtractor(const PAK::Entry& entry);
|
||||
const std::string& getName() const {return m_node.getName();}
|
||||
const HECL::SystemString& getLevelString() const {return m_levelString;}
|
||||
const hecl::SystemString& getLevelString() const {return m_levelString;}
|
||||
using PAKType = PAK;
|
||||
const PAKType& getPAK() const {return m_pak;}
|
||||
const NOD::Node& getNode() const {return m_node;}
|
||||
const nod::Node& getNode() const {return m_node;}
|
||||
|
||||
void addCMDLRigPairs(PAKRouter<PAKBridge>& pakRouter,
|
||||
std::unordered_map<UniqueID32, std::pair<UniqueID32, UniqueID32>>& addTo) const;
|
||||
|
||||
Reference in New Issue
Block a user