Searchable selection model shared by developer and in-game editors. 更多...
#include <GameplayTagPicker.h>
Public 成员函数 | |
| GameplayTagPicker (const tags::GameplayTagRegistry ®istry) | |
| 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()
|
inlineexplicit |
Construct a picker borrowing the canonical registry.
在文件 GameplayTagPicker.h 第 34 行定义.
成员函数说明
◆ 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 | ) |
Select an exact registered definition.
在文件 GameplayTagPicker.cpp 第 15 行定义.
引用了 eve::Applied, eve::tags::GameplayTagRegistry::contains(), eve::Diagnostic::error(), eve::Result< T >::failure(), name, eve::NotFound, eve::Status::success() , 以及 eve::Result< T >::success().
◆ selected()
|
inlinenoexcept |
Return the selected canonical name, or empty.
在文件 GameplayTagPicker.h 第 45 行定义.
◆ setFilter()
|
inline |
◆ 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().
该类的文档由以下文件生成:
- src/modules/editor/GameplayTagPicker.h
- src/modules/editor/GameplayTagPicker.cpp