载入中...
搜索中...
未找到
eve::dnut::StepKindDescriptor结构体 参考

Owning authoring/runtime contract for one step type. 更多...

#include <StepKindRegistry.h>

Public 属性

std::string type
 
std::string displayName
 
std::string category
 
StepShape shape = StepShape::Instant
 
std::vector< StepField > fields
 
std::function< eve::Result< void >(const SequenceNode &node)> validate
 Optional domain invariant applied after the field schema passes.
 

详细描述

Owning authoring/runtime contract for one step type.

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

类成员变量说明

◆ category

std::string eve::dnut::StepKindDescriptor::category

在文件 StepKindRegistry.h 第 48 行定义.

◆ displayName

std::string eve::dnut::StepKindDescriptor::displayName

在文件 StepKindRegistry.h 第 47 行定义.

◆ fields

std::vector<StepField> eve::dnut::StepKindDescriptor::fields

在文件 StepKindRegistry.h 第 50 行定义.

◆ shape

StepShape eve::dnut::StepKindDescriptor::shape = StepShape::Instant

在文件 StepKindRegistry.h 第 49 行定义.

◆ type

std::string eve::dnut::StepKindDescriptor::type

在文件 StepKindRegistry.h 第 46 行定义.

◆ validate

std::function<eve::Result<void>(const SequenceNode& node)> eve::dnut::StepKindDescriptor::validate

Optional domain invariant applied after the field schema passes.

The field schema can express presence and value kind; a domain rule that spans several fields (for example "exactly one of `learn` / `forget`") belongs here so it is checked when content is compiled rather than when a player reaches the step. Returning a failure rejects the authored asset.

在文件 StepKindRegistry.h 第 59 行定义.


该结构体的文档由以下文件生成: