summaryrefslogtreecommitdiff
path: root/TemplateFactory.cpp
diff options
context:
space:
mode:
authorpetrie911 <69443847+petrie911@users.noreply.github.com>2024-03-16 15:37:37 -0500
committerGitHub <noreply@github.com>2024-03-16 14:37:37 -0600
commit3330d5bd39bd4e0da8c8530290aba59fda849c17 (patch)
treedbce6b7876b018f6b8cc5bd0faaad86666a42400 /TemplateFactory.cpp
parent02f2c2f03c5fb386258e62c377a0fcd686b57690 (diff)
Add Vec3f factory and AddAsset (#44)
* 3D * and env * so much to fix * Everything can be solved with triangles * fixes * initfix * stuff
Diffstat (limited to 'TemplateFactory.cpp')
-rw-r--r--TemplateFactory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/TemplateFactory.cpp b/TemplateFactory.cpp
index 1d89a6f..60e03fc 100644
--- a/TemplateFactory.cpp
+++ b/TemplateFactory.cpp
@@ -33,6 +33,9 @@ void TypeBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData
}
std::optional<std::shared_ptr<IParsedData>> TypeFactory::parse(std::vector<uint8_t>& buffer, YAML::Node& node) {
+ auto [root, segment] = Decompressor::AutoDecode(node, buffer, 0x1000);
+ LUS::BinaryReader reader(segment.data, segment.size);
+ reader.SetEndianness(LUS::Endianness::Big);
return std::make_shared<TypeData>();
}