Canonical owner of versioned gameplay-tag definitions. 更多...
#include <GameplayTag.h>
Public 成员函数 | |
| Result< GameplayTagId > | registerTag (std::string name, std::string description={}) |
| Register a definition, returning NoOp for an identical definition. | |
| Result< GameplayTagDefinition > | find (std::string_view name) const |
| Find an exact definition and return an owning copy. | |
| bool | contains (std::string_view name) const |
| Return whether an exact definition exists. | |
| std::vector< GameplayTagDefinition > | definitions () const |
| Return all definitions in lexical name order. | |
| std::vector< GameplayTagDefinition > | search (std::string_view text, std::string_view root={}) const |
| Return definitions matching a root and case-insensitive text filter. | |
| Result< Value > | toValue () const |
| Encode schema eve.gameplay-tags version 1. Unknown fields are ignored on load. | |
静态 Public 成员函数 | |
| static Result< GameplayTagRegistry > | fromValue (const Value &value) |
| Transactionally decode schema eve.gameplay-tags version 1. | |
详细描述
Canonical owner of versioned gameplay-tag definitions.
The registry is owner-thread-only. Returned definitions and collections are owning copies, so callers never retain pointers across mutations or reloads.
在文件 GameplayTag.h 第 49 行定义.
成员函数说明
◆ contains()
| bool eve::tags::GameplayTagRegistry::contains | ( | std::string_view | name | ) | const |
◆ definitions()
| std::vector< GameplayTagDefinition > eve::tags::GameplayTagRegistry::definitions | ( | ) | const |
◆ find()
| Result< GameplayTagDefinition > eve::tags::GameplayTagRegistry::find | ( | std::string_view | name | ) | const |
Find an exact definition and return an owning copy.
在文件 GameplayTag.cpp 第 78 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, name, eve::NotFound , 以及 eve::Result< T >::success().
◆ fromValue()
|
static |
Transactionally decode schema eve.gameplay-tags version 1.
在文件 GameplayTag.cpp 第 117 行定义.
引用了 eve::Value::arraySize(), eve::Value::asInt(), eve::Value::asString(), eve::Value::at(), description, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::tags::gameplayTagId(), id, eve::InvalidArgument, eve::Value::isArray(), eve::Value::isInt64(), eve::Value::isString(), member, name, path, registerTag(), eve::Result< T >::success() , 以及 value.
◆ registerTag()
| Result< GameplayTagId > eve::tags::GameplayTagRegistry::registerTag | ( | std::string | name, |
| std::string | description = {} |
||
| ) |
Register a definition, returning NoOp for an identical definition.
在文件 GameplayTag.cpp 第 59 行定义.
引用了 eve::AlreadyExists, eve::Applied, eve::Conflict, description, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::tags::gameplayTagId(), id, eve::InvalidArgument, eve::tags::isValidGameplayTagName(), name, eve::NoOp, eve::Status::success() , 以及 eve::Result< T >::success().
被这些函数引用 fromValue().
◆ search()
| std::vector< GameplayTagDefinition > eve::tags::GameplayTagRegistry::search | ( | std::string_view | text, |
| std::string_view | root = {} |
||
| ) | const |
Return definitions matching a root and case-insensitive text filter.
在文件 GameplayTag.cpp 第 95 行定义.
引用了 eve::tags::gameplayTagMatches(), eve::tags::IncludeDescendants, name, root , 以及 text.
◆ toValue()
Encode schema eve.gameplay-tags version 1. Unknown fields are ignored on load.
在文件 GameplayTag.cpp 第 106 行定义.
引用了 name , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/tags/GameplayTag.h
- src/modules/tags/GameplayTag.cpp