2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-24 17:03:05 +00:00

chore: pass ZoneLoading error as result

This commit is contained in:
Jan Laupetin
2025-10-11 15:28:19 +01:00
parent 098be53559
commit b27b7e77bd
9 changed files with 181 additions and 121 deletions

View File

@@ -1,4 +1,6 @@
#pragma once
#include "Utils/Result.h"
#include "Zone/Zone.h"
#include <string>
@@ -6,5 +8,5 @@
class ZoneLoading
{
public:
static std::unique_ptr<Zone> LoadZone(const std::string& path);
static result::Expected<std::unique_ptr<Zone>, std::string> LoadZone(const std::string& path);
};