mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-12 18:01:16 +00:00
ZAPD update (#612)
* remove roompoly * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "fd4d53a26" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "fd4d53a26" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
This commit is contained in:
parent
5c6335f9fb
commit
1ff2f0f849
171 changed files with 1567 additions and 826 deletions
30
tools/ZAPD/ZAPD/ZVector.h
Normal file
30
tools/ZAPD/ZAPD/ZVector.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
#include "ZResource.h"
|
||||
#include "ZScalar.h"
|
||||
#include "tinyxml2.h"
|
||||
|
||||
class ZVector : public ZResource
|
||||
{
|
||||
public:
|
||||
std::vector<ZScalar*> scalars;
|
||||
ZScalarType scalarType;
|
||||
uint32_t dimensions;
|
||||
|
||||
ZVector();
|
||||
|
||||
void ParseXML(tinyxml2::XMLElement* reader);
|
||||
std::string GetSourceTypeName();
|
||||
std::string GetSourceValue();
|
||||
std::string GetSourceOutputCode(const std::string& prefix);
|
||||
int GetRawDataSize();
|
||||
ZResourceType GetResourceType();
|
||||
|
||||
static ZVector* ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, const int rawDataIndex, const std::string& nRelPath);
|
||||
|
||||
protected:
|
||||
void ParseRawData();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue