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/ZArray.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/ZArray.h')
| -rw-r--r-- | ZAPD/ZArray.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ZAPD/ZArray.h b/ZAPD/ZArray.h new file mode 100644 index 0000000..8fd2565 --- /dev/null +++ b/ZAPD/ZArray.h @@ -0,0 +1,25 @@ +#pragma once + +#include <vector> +#include <string> +#include <stdint.h> +#include "ZResource.h" +#include "tinyxml2.h" + +class ZArray : public ZResource +{ +public: + ZArray(); + + void ParseXML(tinyxml2::XMLElement* reader) override; + std::string GetSourceOutputCode(const std::string& prefix) override; + int GetRawDataSize() override; + + static ZArray* ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, const int rawDataIndex, const std::string& nRelPath, ZFile* nParent); + +protected: + int arrayCnt; + ZFile* testFile; + + //void ParseRawData(const std::vector<uint8_t>& data, const int offset); +};
\ No newline at end of file |
