Stable definition reference backed by LogicalId. 更多...
#include <ResourceRef.h>
Public 成员函数 | |
| DefinitionRef ()=default | |
| Constructs an invalid reference for optional/component storage. | |
| const LogicalId & | id () const noexcept |
| Return the stable logical definition identity. | |
| const std::string & | format () const noexcept |
Return canonical namespace:name text. | |
静态 Public 成员函数 | |
| static Result< DefinitionRef > | parse (std::string_view text) |
Parse a namespace:name logical definition identifier. | |
| static Result< DefinitionRef > | fromId (LogicalId id) |
| Build a definition reference from a valid LogicalId. | |
友元 | |
| bool | operator== (const DefinitionRef &, const DefinitionRef &) noexcept=default |
| Compare definition references by logical identity. | |
详细描述
Stable definition reference backed by LogicalId.
A DefinitionRef names a definition (namespace:name); it is not a resource locator and therefore is intentionally not accepted as a ResourceUri.
在文件 ResourceRef.h 第 85 行定义.
构造及析构函数说明
◆ DefinitionRef()
|
default |
成员函数说明
◆ format()
|
inlinenoexcept |
Return canonical namespace:name text.
在文件 ResourceRef.h 第 100 行定义.
◆ fromId()
|
static |
Build a definition reference from a valid LogicalId.
在文件 ResourceRef.cpp 第 50 行定义.
引用了 DefinitionRef() , 以及 eve::Result< T >::success().
被这些函数引用 eve::vehicle::VehicleDefinitionRuntime::create(), eve::weapon::WeaponDefinitionRuntime::create(), eve::rpg::SkillDefinitionRuntime::create() , 以及 eve::weapon::parseWeaponDefinition().
◆ id()
|
inlinenoexcept |
Return the stable logical definition identity.
在文件 ResourceRef.h 第 97 行定义.
被这些函数引用 eve::card::CardDefinitionRuntime::applyTo(), eve::effects::EffectDefinitionRuntime::applyTo(), eve::vehicle::VehicleDefinitionRuntime::applyTo(), eve::definition::InstanceIdentity::create(), eve::definition::DefinitionHandle::isValid() , 以及 eve::definition::InstanceIdentity::isValid().
◆ parse()
|
static |
Parse a namespace:name logical definition identifier.
在文件 ResourceRef.cpp 第 44 行定义.
引用了 DefinitionRef(), eve::LogicalId::parse(), eve::Result< T >::success() , 以及 text.
被这些函数引用 eve::production::WorkQueue::restore() , 以及 eve::definition::restoreRuntimeInstance().
友元及相关函数文档
◆ operator==
|
friend |
Compare definition references by logical identity.
该类的文档由以下文件生成:
- src/engine/common/ResourceRef.h
- src/engine/common/ResourceRef.cpp