Torch
Loading...
Searching...
No Matches
OoTAnimationFactory.h
1
#pragma once
2
3
#include "factories/BaseFactory.h"
4
#include "OoTAnimationTypes.h"
5
#include <vector>
6
#include <optional>
7
8
namespace
OoT {
9
10
class
OoTNormalAnimationData
:
public
IParsedData
{
11
public
:
12
int16_t frameCount;
13
std::vector<uint16_t> rotationValues;
14
std::vector<RotationIndex> rotationIndices;
15
int16_t limit;
16
bool
isLegacy =
false
;
17
};
18
19
class
OoTAnimationBinaryExporter
:
public
BaseExporter
{
20
ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName,
21
YAML::Node& node, std::string* replacement)
override
;
22
};
23
24
class
OoTAnimationFactory
:
public
BaseFactory
{
25
public
:
26
std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data)
override
;
27
std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters()
override
{
28
return
{
29
REGISTER(Binary,
OoTAnimationBinaryExporter
)
30
};
31
}
32
};
33
34
}
// namespace OoT
BaseExporter
Definition
BaseFactory.h:96
BaseFactory
Definition
BaseFactory.h:102
IParsedData
Definition
BaseFactory.h:88
OoT::OoTAnimationBinaryExporter
Definition
OoTAnimationFactory.h:19
OoT::OoTAnimationFactory
Definition
OoTAnimationFactory.h:24
OoT::OoTNormalAnimationData
Definition
OoTAnimationFactory.h:10
src
factories
oot
OoTAnimationFactory.h
Generated by
1.14.0