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