载入中...
搜索中...
未找到
eve::editor::DiskAssetCatalog类 参考

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.

参数
projectRootProject directory containing Content/.
databaseNon-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()

◆ 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().


该类的文档由以下文件生成: