载入中...
搜索中...
未找到
eve::tags::GameplayTagRegistry类 参考

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

Return whether an exact definition exists.

在文件 GameplayTag.cpp 第 86 行定义.

引用了 name.

被这些函数引用 eve::editor::GameplayTagPicker::select().

◆ definitions()

std::vector< GameplayTagDefinition > eve::tags::GameplayTagRegistry::definitions ( ) const

Return all definitions in lexical name order.

在文件 GameplayTag.cpp 第 88 行定义.

引用了 name.

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

◆ registerTag()

Result< GameplayTagId > eve::tags::GameplayTagRegistry::registerTag ( std::string  name,
std::string  description = {} 
)

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

被这些函数引用 eve::editor::GameplayTagPicker::entries().

◆ toValue()

Result< Value > eve::tags::GameplayTagRegistry::toValue ( ) const

Encode schema eve.gameplay-tags version 1. Unknown fields are ignored on load.

在文件 GameplayTag.cpp 第 106 行定义.

引用了 name , 以及 eve::Result< T >::success().


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