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

Searchable selection model shared by developer and in-game editors. 更多...

#include <GameplayTagPicker.h>

Public 成员函数

 GameplayTagPicker (const tags::GameplayTagRegistry &registry)
 Construct a picker borrowing the canonical registry.
 
void setFilter (std::string filter)
 Set a case-insensitive name/description filter.
 
Result< void > setRoot (std::string root)
 Restrict results to a tag root and its descendants; empty clears the root.
 
Result< void > select (std::string name)
 Select an exact registered definition.
 
void clearSelection ()
 Clear the current selection.
 
const std::string & selected () const noexcept
 Return the selected canonical name, or empty.
 
std::vector< GameplayTagPickerEntry > entries () const
 Build deterministic owning entries for the current root and filter.
 

详细描述

Searchable selection model shared by developer and in-game editors.

The registry is borrowed and must outlive the picker. Methods are owner-thread only and invoke no callbacks. Results own their strings and remain valid after subsequent registry mutation.

在文件 GameplayTagPicker.h 第 31 行定义.

构造及析构函数说明

◆ GameplayTagPicker()

eve::editor::GameplayTagPicker::GameplayTagPicker ( const tags::GameplayTagRegistry &  registry)
inlineexplicit

Construct a picker borrowing the canonical registry.

在文件 GameplayTagPicker.h 第 34 行定义.

成员函数说明

◆ clearSelection()

void eve::editor::GameplayTagPicker::clearSelection ( )
inline

Clear the current selection.

在文件 GameplayTagPicker.h 第 43 行定义.

◆ entries()

std::vector< GameplayTagPickerEntry > eve::editor::GameplayTagPicker::entries ( ) const

Build deterministic owning entries for the current root and filter.

在文件 GameplayTagPicker.cpp 第 23 行定义.

引用了 definitions, depth , 以及 eve::tags::GameplayTagRegistry::search().

◆ select()

Result< void > eve::editor::GameplayTagPicker::select ( std::string  name)

◆ selected()

const std::string & eve::editor::GameplayTagPicker::selected ( ) const
inlinenoexcept

Return the selected canonical name, or empty.

在文件 GameplayTagPicker.h 第 45 行定义.

◆ setFilter()

void eve::editor::GameplayTagPicker::setFilter ( std::string  filter)
inline

Set a case-insensitive name/description filter.

在文件 GameplayTagPicker.h 第 37 行定义.

引用了 filter.

◆ setRoot()

Result< void > eve::editor::GameplayTagPicker::setRoot ( std::string  root)

Restrict results to a tag root and its descendants; empty clears the root.

在文件 GameplayTagPicker.cpp 第 7 行定义.

引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::tags::isValidGameplayTagName(), root, eve::Status::success() , 以及 eve::Result< T >::success().


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