载入中...
搜索中...
未找到
GameplayTagPicker.cpp
浏览该文件的文档.
18 Diagnostic::error(DiagnosticCode::NotFound, "Cannot select an unregistered gameplay tag", name));
30 const bool hasChildren = std::any_of(definitions.begin(), definitions.end(), [&](const auto& candidate) {
UI-neutral gameplay-tag picker projection.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.h:81
Result< void > select(std::string name)
Select an exact registered definition.
Definition GameplayTagPicker.cpp:15
Result< void > setRoot(std::string root)
Restrict results to a tag root and its descendants; empty clears the root.
Definition GameplayTagPicker.cpp:7
std::vector< GameplayTagPickerEntry > entries() const
Build deterministic owning entries for the current root and filter.
Definition GameplayTagPicker.cpp:23
std::vector< GameplayTagDefinition > search(std::string_view text, std::string_view root={}) const
Return definitions matching a root and case-insensitive text filter.
Definition GameplayTag.cpp:95
bool contains(std::string_view name) const
Return whether an exact definition exists.
Definition GameplayTag.cpp:86
Definition ActionPreviewController.cpp:6
bool isValidGameplayTagName(std::string_view name) noexcept
Returns whether a name is a canonical dot-separated gameplay tag.
Definition GameplayTag.cpp:29
@ InvalidArgument
@ NotFound
@ Applied