Fully validated, owning settings for one prefab-spawn state block. 更多...
#include <ActionPrefabBlock.h>
Public 成员函数 | |
| auto | operator<=> (const ActionPrefabSpawnBinding &) const =default |
| Operator <=>. | |
静态 Public 成员函数 | |
| static Result< ActionPrefabSpawnBinding > | fromPayload (const Value::Object &payload) |
| Decode a prefab-spawn payload without mutating runtime state. | |
Public 属性 | |
| std::string | uri |
| PrefabSpawnLifecycle | lifecycle = PrefabSpawnLifecycle::RecycleOnBlockExit |
| Duration | customDuration = Duration::zero() |
| ActionSpatialBinding | spatial |
详细描述
Fully validated, owning settings for one prefab-spawn state block.
This is the renderer-neutral contract shared by editor validation and the runtime provider. It stores no entity, scene-node, resource, or bone pointer.
在文件 ActionPrefabBlock.h 第 32 行定义.
成员函数说明
◆ fromPayload()
|
static |
Decode a prefab-spawn payload without mutating runtime state.
- 参数
-
payload Owning action payload containing uri, lifecycle and spatial fields.
- 返回
- Validated settings or a stable field-path diagnostic.
- 备注
- lifecycle defaults to recycle_on_block_exit. custom_duration requires a positive finite customDurationSeconds value.
在文件 ActionPrefabBlock.cpp 第 48 行定义.
引用了 eve::action::CustomDuration, customDuration, duration, eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::action::ActionSpatialBinding::fromPayload(), eve::Duration::fromSeconds(), eve::action::Independent, eve::InvalidArgument, lifecycle, payload, eve::action::RecycleOnBlockExit, spatial, eve::Result< T >::success(), uri , 以及 value.
◆ operator<=>()
|
default |
Operator <=>.
类成员变量说明
◆ customDuration
| Duration eve::action::ActionPrefabSpawnBinding::customDuration = Duration::zero() |
在文件 ActionPrefabBlock.h 第 35 行定义.
被这些函数引用 fromPayload().
◆ lifecycle
| PrefabSpawnLifecycle eve::action::ActionPrefabSpawnBinding::lifecycle = PrefabSpawnLifecycle::RecycleOnBlockExit |
在文件 ActionPrefabBlock.h 第 34 行定义.
被这些函数引用 fromPayload().
◆ spatial
| ActionSpatialBinding eve::action::ActionPrefabSpawnBinding::spatial |
在文件 ActionPrefabBlock.h 第 36 行定义.
被这些函数引用 fromPayload().
◆ uri
| std::string eve::action::ActionPrefabSpawnBinding::uri |
在文件 ActionPrefabBlock.h 第 33 行定义.
被这些函数引用 fromPayload().
该结构体的文档由以下文件生成:
- src/modules/action/ActionPrefabBlock.h
- src/modules/action/ActionPrefabBlock.cpp