mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-24 16:01:26 +00:00
subrepo: subdir: "tools/ZAPD" merged: "769f5702a" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "769f5702a" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
#include "ZDisplayList.h"
|
|
#include "ZFile.h"
|
|
#include "ZLimb.h"
|
|
|
|
enum class ZSkeletonType
|
|
{
|
|
Normal,
|
|
Flex,
|
|
Curve,
|
|
};
|
|
|
|
class ZSkeleton : public ZResource
|
|
{
|
|
public:
|
|
ZSkeletonType type;
|
|
ZLimbType limbType;
|
|
std::vector<ZLimb*> limbs;
|
|
segptr_t limbsArrayAddress;
|
|
uint8_t limbCount;
|
|
uint8_t dListCount; // FLEX SKELETON ONLY
|
|
|
|
ZSkeleton(ZFile* nParent);
|
|
ZSkeleton(ZSkeletonType nType, ZLimbType nLimbType, const std::string& prefix,
|
|
const std::vector<uint8_t>& nRawData, uint32_t nRawDataIndex, ZFile* nParent);
|
|
~ZSkeleton();
|
|
void ParseXML(tinyxml2::XMLElement* reader) override;
|
|
void ParseRawData() override;
|
|
void ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData,
|
|
const uint32_t nRawDataIndex) override;
|
|
void GenerateHLIntermediette(HLFileIntermediette& hlFile) override;
|
|
|
|
size_t GetRawDataSize() const override;
|
|
std::string GetSourceOutputCode(const std::string& prefix) override;
|
|
|
|
std::string GetSourceTypeName() const override;
|
|
ZResourceType GetResourceType() const override;
|
|
|
|
segptr_t GetAddress();
|
|
uint8_t GetLimbCount();
|
|
};
|