diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2021-01-19 15:08:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-19 15:08:29 -0500 |
| commit | 2e1174063f3ed6bcf929bc7093cd2d1b05f8518b (patch) | |
| tree | d62ac506b1017296dba708030745743da90a5b2d /ZAPD/ZSkeleton.h | |
| parent | fda77edbcfcee7675fd1549553114d690d4fcd39 (diff) | |
Added in support for ZArray (WIP) and ZVtx. Also cleaned up some of the virtual functions. (#73)
Diffstat (limited to 'ZAPD/ZSkeleton.h')
| -rw-r--r-- | ZAPD/ZSkeleton.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ZAPD/ZSkeleton.h b/ZAPD/ZSkeleton.h index 345469a..836251a 100644 --- a/ZAPD/ZSkeleton.h +++ b/ZAPD/ZSkeleton.h @@ -25,8 +25,8 @@ struct ZLimbStandard : public ZResource ZLimbStandard(); static ZLimbStandard* FromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath, ZFile* parent); static ZLimbStandard* FromRawData(std::vector<uint8_t> nRawData, int rawDataIndex); - std::string GetSourceOutputCode(const std::string& prefix); - virtual int GetRawDataSize(); + std::string GetSourceOutputCode(const std::string& prefix) override; + int GetRawDataSize() override; }; struct ZLimbLOD : ZLimbStandard @@ -36,8 +36,8 @@ struct ZLimbLOD : ZLimbStandard ZLimbLOD(); //static ZLimbLOD* FromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath, ZFile* parent); static ZLimbLOD* FromRawData(std::vector<uint8_t> nRawData, int rawDataIndex); - std::string GetSourceOutputCode(const std::string& prefix); - virtual int GetRawDataSize(); + std::string GetSourceOutputCode(const std::string& prefix) override; + int GetRawDataSize() override; }; enum ZSkeletonType @@ -58,7 +58,8 @@ public: ZSkeleton(); virtual void GenerateHLIntermediette(HLFileIntermediette& hlFile); static ZSkeleton* FromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath, ZFile* nParent); - void Save(const std::string& outFolder); + void Save(const std::string& outFolder) override; + ZResourceType GetResourceType() override; - std::string GetSourceOutputCode(const std::string& prefix); + std::string GetSourceOutputCode(const std::string& prefix) override; }; |
