chore: pass ZoneLoading error as result

This commit is contained in:
Jan Laupetin
2025-10-11 19:04:47 +01:00
parent 098be53559
commit b27b7e77bd
9 changed files with 181 additions and 121 deletions
+3 -2
View File
@@ -1,14 +1,15 @@
#pragma once
#include "Utils/Result.h"
#include "Zone/Zone.h"
#include <memory>
#include <optional>
#include <vector>
class FastFileContext
{
public:
std::optional<Zone*> LoadFastFile(const std::string& path);
result::Expected<Zone*, std::string> LoadFastFile(const std::string& path);
std::vector<std::unique_ptr<Zone>> m_loaded_zones;
};