载入中...
搜索中...
未找到

Stable asset identity backed by PersistentId. 更多...

#include <ResourceRef.h>

Public 成员函数

const PersistentId & id () const noexcept
 Return the stable asset identity.
 
std::string format () const
 Return canonical asset://<uuid> text.
 

静态 Public 成员函数

static Result< AssetRef > parse (std::string_view text)
 Parse an asset://<canonical UUID> reference.
 
static Result< AssetRef > fromId (PersistentId id)
 Build an asset reference from a non-nil persistent identity.
 
static Result< AssetRef > fromUri (const ResourceUri &uri)
 Convert an asset://<canonical UUID> ResourceUri to an AssetRef.
 

友元

bool operator== (const AssetRef &, const AssetRef &) noexcept=default
 Compare asset references by persistent identity.
 

详细描述

Stable asset identity backed by PersistentId.

Its canonical text form is asset://<uuid>. A project-relative path is a ResourceUri locator, not an AssetRef, so renaming a project file does not change this identity.

在文件 ResourceRef.h 第 53 行定义.

成员函数说明

◆ format()

◆ fromId()

Result< AssetRef > eve::AssetRef::fromId ( PersistentId  id)
static

Build an asset reference from a non-nil persistent identity.

在文件 ResourceRef.cpp 第 26 行定义.

引用了 eve::Result< T >::success().

被这些函数引用 eve::asset_import::detail::assetRef(), eve::asset::EvpackResourceReader::listAssets() , 以及 eve::asset_stylize::prepareMeshVfxPackage().

◆ fromUri()

Result< AssetRef > eve::AssetRef::fromUri ( const ResourceUri &  uri)
static

Convert an asset://<canonical UUID> ResourceUri to an AssetRef.

在文件 ResourceRef.cpp 第 31 行定义.

引用了 eve::Asset, eve::detail::Id128< Tag >::parse(), eve::Result< T >::success() , 以及 uri.

被这些函数引用 parse() , 以及 eve::ResourceRef::parse().

◆ id()

const PersistentId & eve::AssetRef::id ( ) const
inlinenoexcept

Return the stable asset identity.

在文件 ResourceRef.h 第 65 行定义.

被这些函数引用 eve::asset::cookEvaToEvpack(), eve::asset_stylize::prepareMeshVfxPackage() , 以及 eve::asset::EvpackResourceReader::read().

◆ parse()

友元及相关函数文档

◆ operator==

bool operator== ( const AssetRef &  ,
const AssetRef &   
)
friend

Compare asset references by persistent identity.


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