Project Content scanner using stable .evmeta GUID sidecars.
更多...
#include <EditorDiskAssetCatalog.h>
Public 成员函数 | |
| DiskAssetCatalog (std::filesystem::path projectRoot, MemoryAssetDatabase *database) | |
| Create a host-driven disk asset catalog. | |
| Result< void > | writeSidecar (const std::filesystem::path &contentRelativePath, AssetGuid guid, std::string typeId, std::uint32_t schemaVersion=1) |
| Create/replace a sidecar for a Content-relative source file. | |
| Result< DiskAssetScanResult > | scan () |
| Scan every sidecar and atomically publish valid records. | |
| Result< DiskAssetScanResult > | poll () |
| Rescan and report only content/sidecar fingerprints that changed. | |
详细描述
Project Content scanner using stable .evmeta GUID sidecars.
A sidecar named Tree.png.evmeta describes Tree.png. Moving both files changes the logical URI while retaining identity. poll() is deliberately host-driven so desktop editors, games and MCP hosts can choose their own watcher/event loop without changing indexing semantics.
在文件 EditorDiskAssetCatalog.h 第 27 行定义.
构造及析构函数说明
◆ DiskAssetCatalog()
| eve::editor::DiskAssetCatalog::DiskAssetCatalog | ( | std::filesystem::path | projectRoot, |
| MemoryAssetDatabase * | database | ||
| ) |
Create a host-driven disk asset catalog.
- 参数
-
projectRoot Project directory containing Content/. database Non-owning destination index; it must outlive the catalog.
在文件 EditorDiskAssetCatalog.cpp 第 26 行定义.
成员函数说明
◆ poll()
| Result< DiskAssetScanResult > eve::editor::DiskAssetCatalog::poll | ( | ) |
Rescan and report only content/sidecar fingerprints that changed.
在文件 EditorDiskAssetCatalog.cpp 第 142 行定义.
引用了 scan().
◆ scan()
| Result< DiskAssetScanResult > eve::editor::DiskAssetCatalog::scan | ( | ) |
Scan every sidecar and atomically publish valid records.
在文件 EditorDiskAssetCatalog.cpp 第 77 行定义.
引用了 eve::editor::DiskAssetScanResult::changed, eve::Conflict, eve::editor::DiskAssetScanResult::diagnostics, eve::UuidIdAdapter< Tag >::empty(), end, eve::editor::AssetRecord::guid, hash, eve::editor::DiskAssetScanResult::indexed, input, eve::InvalidArgument, eve::editor::AssetRecord::logicalUri, eve::NotFound, previous, eve::editor::MemoryAssetDatabase::publish(), relative, eve::editing::ruleDiagnostic(), eve::editor::AssetRecord::schemaVersion, source, eve::editor::AssetRecord::sourceHash, eve::editor::AssetRecord::sourceUri, type, eve::editor::AssetRecord::typeId , 以及 eve::UuidIdAdapter< Tag >::value().
被这些函数引用 poll().
◆ writeSidecar()
| Result< void > eve::editor::DiskAssetCatalog::writeSidecar | ( | const std::filesystem::path & | contentRelativePath, |
| AssetGuid | guid, | ||
| std::string | typeId, | ||
| std::uint32_t | schemaVersion = 1 |
||
| ) |
Create/replace a sidecar for a Content-relative source file.
在文件 EditorDiskAssetCatalog.cpp 第 43 行定义.
引用了 eve::UuidIdAdapter< Tag >::empty(), output, source , 以及 eve::UuidIdAdapter< Tag >::value().
该类的文档由以下文件生成:
- src/modules/editor/EditorDiskAssetCatalog.h
- src/modules/editor/EditorDiskAssetCatalog.cpp