载入中...
搜索中...
未找到
EditorDiskAssetCatalog.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <filesystem>
8#include <map>
9
10namespace eve::editor {
11
14 std::size_t indexed = 0;
15 std::size_t changed = 0;
16 std::vector<EditorDiagnostic> diagnostics;
17};
18
28public:
34 DiskAssetCatalog(std::filesystem::path projectRoot, MemoryAssetDatabase* database);
36 Result<void> writeSidecar(const std::filesystem::path& contentRelativePath, AssetGuid guid,
37 std::string typeId, std::uint32_t schemaVersion = 1);
42
43private:
44 std::filesystem::path resolveContent(const std::filesystem::path& relative) const;
45 static std::string fileHash(const std::filesystem::path& path);
46
47 std::filesystem::path contentRoot_;
48 MemoryAssetDatabase* database_ = nullptr;
49 std::map<AssetGuid, std::string> fingerprints_;
50};
51
52} // namespace eve::editor
Vec3 relative
Definition AnimSmr.cpp:164
#define EVENGINE_API_ORCHESTRATION
Definition Export.h:111
std::string path
Definition PlayHost.cpp:110
Move-only operation result carrying either a value or Status.
Definition Result.h:155
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Project Content scanner using stable .evmeta GUID sidecars.
Thread-neutral in-memory asset index used by editor hosts and tests.
Result of one disk asset sidecar scan/poll.
std::vector< EditorDiagnostic > diagnostics