1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-16 13:36:57 +00:00
oot/tools/ZAPD/ZAPD/HighLevel/HLAnimationIntermediette.h

32 lines
816 B
C
Raw Normal View History

#pragma once
#include <stdint.h>
#include "../ZAnimation.h"
#include <tinyxml2.h>
#include "HLFileIntermediette.h"
/*
* An intermediette format for animations. Going to use XML.
* Goes from FBX->XML->C
* Note: At the moment this is a very direct representation of the output format.
* Optimally we can determine where the keyframes are and remove redundant information.
*/
class HLAnimationIntermediette
{
public:
int16_t frameCount;
int16_t limit;
int16_t limbCount;
std::vector<uint16_t> rotationValues;
std::vector<RotationIndex> rotationIndices;
HLAnimationIntermediette();
~HLAnimationIntermediette();
std::string OutputXML();
ZAnimation* ToZAnimation();
static HLAnimationIntermediette* FromXML(std::string xmlPath);
static HLAnimationIntermediette* FromZAnimation(ZAnimation* zAnim);
};