mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 23:41:24 +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
68
tools/ZAPD/ZAPD/ZAnimation.h
Normal file
68
tools/ZAPD/ZAPD/ZAnimation.h
Normal file
|
@ -0,0 +1,68 @@
|
|||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
#include "ZResource.h"
|
||||
#include "Vec3s.h"
|
||||
#include "tinyxml2.h"
|
||||
|
||||
struct RotationIndex
|
||||
{
|
||||
//uint16_t transX, transY, transZ;
|
||||
uint16_t x, y, z;
|
||||
|
||||
RotationIndex(uint16_t nX, uint16_t nY, uint16_t nZ) { x = nX; y = nY; z = nZ; };
|
||||
};
|
||||
|
||||
class ZAnimation : public ZResource
|
||||
{
|
||||
public:
|
||||
|
||||
int16_t frameCount;
|
||||
|
||||
ZAnimation();
|
||||
|
||||
std::string GetSourceOutputCode(std::string prefix);
|
||||
protected:
|
||||
|
||||
virtual void ParseRawData();
|
||||
void Save(std::string outFolder);
|
||||
void ParseXML(tinyxml2::XMLElement* reader);
|
||||
};
|
||||
|
||||
class ZNormalAnimation : public ZAnimation
|
||||
{
|
||||
public:
|
||||
std::vector<uint16_t> rotationValues;
|
||||
std::vector<RotationIndex> rotationIndices;
|
||||
uint32_t rotationValuesSeg;
|
||||
uint32_t rotationIndicesSeg;
|
||||
int16_t limit;
|
||||
|
||||
ZNormalAnimation();
|
||||
|
||||
std::string GetSourceOutputCode(std::string prefix);
|
||||
virtual int GetRawDataSize();
|
||||
|
||||
static ZNormalAnimation* ExtractFromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath);
|
||||
|
||||
protected:
|
||||
virtual void ParseRawData();
|
||||
};
|
||||
|
||||
class ZLinkAnimation : public ZAnimation
|
||||
{
|
||||
public:
|
||||
uint32_t segmentAddress;
|
||||
|
||||
ZLinkAnimation();
|
||||
|
||||
std::string GetSourceOutputCode(std::string prefix);
|
||||
virtual int GetRawDataSize();
|
||||
|
||||
static ZLinkAnimation* ExtractFromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath);
|
||||
|
||||
protected:
|
||||
virtual void ParseRawData();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue