Torch
Loading...
Searching...
No Matches
OoTDListHelpers.h
1#pragma once
2
3#include "factories/BaseFactory.h"
4#include <string>
5#include <optional>
6#include <tuple>
7#include <vector>
8
9namespace OoT {
10namespace DListHelpers {
11
12// OoT replacement for SearchVtx. Returns result if handled, nullopt to fall through to main.
13std::optional<std::tuple<std::string, YAML::Node>> SearchVtx(uint32_t ptr);
14
15// OoT replacement for DListBinaryExporter::Export. Returns result if handled, nullopt to fall through to main.
16std::optional<ExportResult> Export(std::ostream& write, std::shared_ptr<IParsedData> raw,
17 std::string& entryName, YAML::Node& node, std::string* replacement);
18
19// OoT replacement for DListFactory::parse. Returns result if handled, nullopt to fall through to main.
20std::optional<std::optional<std::shared_ptr<IParsedData>>> Parse(
21 std::vector<uint8_t>& raw_buffer, YAML::Node& node);
22
23} // namespace DListHelpers
24} // namespace OoT