1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-14 11:00:41 +00:00

git subrepo pull --force tools/ZAPD (#727)

subrepo:
  subdir:   "tools/ZAPD"
  merged:   "4751db5c9"
upstream:
  origin:   "https://github.com/zeldaret/ZAPD.git"
  branch:   "master"
  commit:   "4751db5c9"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"
This commit is contained in:
fig02 2021-03-20 12:02:12 -04:00 committed by GitHub
parent 77ec4d4916
commit 493bdbc3c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
115 changed files with 16370 additions and 2789 deletions

33
tools/ZAPD/ZAPD/ZSymbol.h Normal file
View file

@ -0,0 +1,33 @@
#pragma once
#include "ZResource.h"
#include "tinyxml2.h"
class ZSymbol : public ZResource
{
protected:
std::string type;
uint32_t typeSize;
bool isArray = false;
uint32_t count = 0;
public:
ZSymbol() = default;
ZSymbol(const std::string& nName, int nRawDataIndex, const std::string& nType,
uint32_t nTypeSize, bool nIsArray, uint32_t nCount);
ZSymbol(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, int nRawDataIndex,
ZFile* nParent);
static ZSymbol* ExtractFromXML(tinyxml2::XMLElement* reader,
const std::vector<uint8_t>& nRawData, int nRawDataIndex,
ZFile* parent);
void ParseXML(tinyxml2::XMLElement* reader) override;
int GetRawDataSize() override;
std::string GetSourceOutputHeader(const std::string& prefix) override;
std::string GetSourceTypeName() override;
ZResourceType GetResourceType() override;
};