mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-14 11:00:41 +00:00
ZAPD update: Gotta go fast! (#877)
* copy over the xml * Rename anims * A bunch of renames * minor extract_assets fixes * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "820678b4e" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "820678b4e" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Change rgb5a1 to rgba16 * eye and eyebrows * some dlists * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "6be9af65d" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "6be9af65d" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
This commit is contained in:
parent
d1a5ea5110
commit
5c147e5e03
226 changed files with 2350 additions and 1492 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "ZDisplayList.h"
|
||||
#include "ZFile.h"
|
||||
#include "ZLimb.h"
|
||||
|
@ -14,26 +15,51 @@ enum class ZSkeletonType
|
|||
Curve,
|
||||
};
|
||||
|
||||
class ZSkeleton : public ZResource
|
||||
class ZLimbTable : public ZResource
|
||||
{
|
||||
public:
|
||||
ZSkeletonType type;
|
||||
ZLimbType limbType;
|
||||
std::vector<ZLimb*> limbs;
|
||||
segptr_t limbsArrayAddress;
|
||||
uint8_t limbCount;
|
||||
uint8_t dListCount; // FLEX SKELETON ONLY
|
||||
ZLimbTable(ZFile* nParent);
|
||||
|
||||
ZSkeleton(ZFile* nParent);
|
||||
ZSkeleton(ZSkeletonType nType, ZLimbType nLimbType, const std::string& prefix,
|
||||
const std::vector<uint8_t>& nRawData, uint32_t nRawDataIndex, ZFile* nParent);
|
||||
~ZSkeleton();
|
||||
|
||||
void ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData,
|
||||
const uint32_t nRawDataIndex) override;
|
||||
void ExtractFromXML(tinyxml2::XMLElement* reader, uint32_t nRawDataIndex) override;
|
||||
void ExtractFromBinary(uint32_t nRawDataIndex, ZLimbType nLimbType, size_t nCount);
|
||||
|
||||
void ParseXML(tinyxml2::XMLElement* reader) override;
|
||||
void ParseRawData() override;
|
||||
void DeclareReferences(const std::string& prefix) override;
|
||||
std::string GetBodySourceCode() const override;
|
||||
|
||||
std::string GetSourceOutputCode(const std::string& prefix) override;
|
||||
|
||||
std::string GetSourceTypeName() const override;
|
||||
ZResourceType GetResourceType() const override;
|
||||
|
||||
size_t GetRawDataSize() const override;
|
||||
|
||||
protected:
|
||||
ZLimbType limbType = ZLimbType::Standard;
|
||||
size_t count = 0;
|
||||
|
||||
std::vector<segptr_t> limbsAddresses;
|
||||
};
|
||||
|
||||
class ZSkeleton : public ZResource
|
||||
{
|
||||
public:
|
||||
ZSkeletonType type = ZSkeletonType::Normal;
|
||||
ZLimbType limbType = ZLimbType::Standard;
|
||||
segptr_t limbsArrayAddress;
|
||||
uint8_t limbCount = 0;
|
||||
uint8_t dListCount = 0; // FLEX SKELETON ONLY
|
||||
|
||||
ZSkeleton(ZFile* nParent);
|
||||
|
||||
void ExtractFromXML(tinyxml2::XMLElement* reader, uint32_t nRawDataIndex) override;
|
||||
|
||||
void ParseXML(tinyxml2::XMLElement* reader) override;
|
||||
void ParseRawData() override;
|
||||
void DeclareReferences(const std::string& prefix) override;
|
||||
std::string GetBodySourceCode() const override;
|
||||
|
||||
std::string GetSourceOutputCode(const std::string& prefix) override;
|
||||
void GenerateHLIntermediette(HLFileIntermediette& hlFile) override;
|
||||
|
||||
|
@ -46,4 +72,5 @@ public:
|
|||
uint8_t GetLimbCount();
|
||||
|
||||
protected:
|
||||
ZLimbTable limbsTable;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue