Torch
Loading...
Searching...
No Matches
OoTPlayerAnimationFactory.h
1
#pragma once
2
3
#include "factories/BaseFactory.h"
4
#include "OoTAnimationTypes.h"
5
#include <vector>
6
#include <string>
7
8
namespace
OoT {
9
10
class
OoTPlayerAnimationHeaderData
:
public
IParsedData
{
11
public
:
12
int16_t frameCount;
13
std::string animDataPath;
14
};
15
16
class
OoTPlayerAnimationHeaderBinaryExporter
:
public
BaseExporter
{
17
ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName,
18
YAML::Node& node, std::string* replacement)
override
;
19
};
20
21
class
OoTPlayerAnimationHeaderFactory
:
public
BaseFactory
{
22
public
:
23
std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data)
override
;
24
std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters()
override
{
25
return
{
26
REGISTER(Binary,
OoTPlayerAnimationHeaderBinaryExporter
)
27
};
28
}
29
};
30
31
class
OoTPlayerAnimationData
:
public
IParsedData
{
32
public
:
33
std::vector<int16_t> limbRotData;
34
};
35
36
class
OoTPlayerAnimationDataBinaryExporter
:
public
BaseExporter
{
37
ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName,
38
YAML::Node& node, std::string* replacement)
override
;
39
};
40
41
class
OoTPlayerAnimationDataFactory
:
public
BaseFactory
{
42
public
:
43
std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data)
override
;
44
std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters()
override
{
45
return
{
46
REGISTER(Binary,
OoTPlayerAnimationDataBinaryExporter
)
47
};
48
}
49
};
50
51
}
// namespace OoT
BaseExporter
Definition
BaseFactory.h:96
BaseFactory
Definition
BaseFactory.h:102
IParsedData
Definition
BaseFactory.h:88
OoT::OoTPlayerAnimationDataBinaryExporter
Definition
OoTPlayerAnimationFactory.h:36
OoT::OoTPlayerAnimationDataFactory
Definition
OoTPlayerAnimationFactory.h:41
OoT::OoTPlayerAnimationData
Definition
OoTPlayerAnimationFactory.h:31
OoT::OoTPlayerAnimationHeaderBinaryExporter
Definition
OoTPlayerAnimationFactory.h:16
OoT::OoTPlayerAnimationHeaderData
Definition
OoTPlayerAnimationFactory.h:10
OoT::OoTPlayerAnimationHeaderFactory
Definition
OoTPlayerAnimationFactory.h:21
src
factories
oot
OoTPlayerAnimationFactory.h
Generated by
1.14.0