mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-14 19:10:25 +00:00
Remove submodule and use subrepo for ZAPD (#591)
* remove zap * git subrepo clone https://github.com/zeldaret/ZAPD.git tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "cd4a8760b" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "cd4a8760b" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * remove thanks.md * zap2 -> zapd and spec changes * remove submodule init
This commit is contained in:
parent
ae5a8f2700
commit
ba0c6965ca
220 changed files with 85641 additions and 554 deletions
64
tools/ZAPD/ZAPD/ZSkeleton.h
Normal file
64
tools/ZAPD/ZAPD/ZSkeleton.h
Normal file
|
@ -0,0 +1,64 @@
|
|||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
#include "ZFile.h"
|
||||
|
||||
enum class ZLimbType
|
||||
{
|
||||
Standard,
|
||||
LOD
|
||||
};
|
||||
|
||||
struct ZLimbStandard : public ZResource
|
||||
{
|
||||
uint32_t address;
|
||||
std::string name;
|
||||
|
||||
int16_t transX, transY, transZ;
|
||||
uint8_t childIndex, siblingIndex;
|
||||
uint32_t dListPtr;
|
||||
|
||||
std::vector<ZLimbStandard*> children;
|
||||
|
||||
ZLimbStandard();
|
||||
static ZLimbStandard* FromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath, ZFile* parent);
|
||||
static ZLimbStandard* FromRawData(std::vector<uint8_t> nRawData, int rawDataIndex);
|
||||
std::string GetSourceOutputCode(std::string prefix);
|
||||
virtual int GetRawDataSize();
|
||||
};
|
||||
|
||||
struct ZLimbLOD : ZLimbStandard
|
||||
{
|
||||
uint32_t farDListPtr;
|
||||
|
||||
ZLimbLOD();
|
||||
//static ZLimbLOD* FromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath, ZFile* parent);
|
||||
static ZLimbLOD* FromRawData(std::vector<uint8_t> nRawData, int rawDataIndex);
|
||||
std::string GetSourceOutputCode(std::string prefix);
|
||||
virtual int GetRawDataSize();
|
||||
};
|
||||
|
||||
enum ZSkeletonType
|
||||
{
|
||||
Normal,
|
||||
Flex,
|
||||
Skin
|
||||
};
|
||||
|
||||
class ZSkeleton : public ZResource
|
||||
{
|
||||
public:
|
||||
ZSkeletonType type;
|
||||
std::vector<ZLimbStandard*> limbs;
|
||||
ZLimbStandard* rootLimb;
|
||||
uint8_t dListCount; // FLEX SKELETON ONLY
|
||||
|
||||
ZSkeleton();
|
||||
virtual void GenerateHLIntermediette(HLFileIntermediette& hlFile);
|
||||
static ZSkeleton* FromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath, ZFile* nParent);
|
||||
void Save(std::string outFolder);
|
||||
|
||||
std::string GetSourceOutputCode(std::string prefix);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue