mirror of
https://github.com/zeldaret/oot
synced 2026-06-28 02:53:05 -04:00
493bdbc3c6
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"
33 lines
846 B
C++
33 lines
846 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <string>
|
|
#include <vector>
|
|
#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) override;
|
|
std::string GetSourceTypeName() override;
|
|
std::string GetSourceValue();
|
|
std::string GetSourceOutputCode(const std::string& prefix) override;
|
|
void ParseRawData() override;
|
|
int GetRawDataSize() override;
|
|
bool DoesSupportArray() override;
|
|
ZResourceType GetResourceType() override;
|
|
|
|
static ZVector* ExtractFromXML(tinyxml2::XMLElement* reader,
|
|
const std::vector<uint8_t>& nRawData, const int rawDataIndex,
|
|
const std::string& nRelPath);
|
|
|
|
protected:
|
|
}; |