Validated spatial settings decoded from a notify payload. 更多...
#include <ActionSpatialBlock.h>
Public 成员函数 | |
| auto | operator<=> (const ActionSpatialBinding &) const =default |
| Operator <=>. | |
静态 Public 成员函数 | |
| static Result< ActionSpatialBinding > | fromPayload (const Value::Object &payload) |
| Decode and validate the common spatial fields in an owning payload. | |
Public 属性 | |
| ActionSpatialAttachmentMode | mode = ActionSpatialAttachmentMode::FollowTarget |
| ActionSpatialTarget | target = ActionSpatialTarget::Source |
| std::size_t | targetIndex = 0 |
| std::string | bone |
| ActionSpatialVector3 | positionOffset |
| ActionSpatialVector3 | rotationOffsetDegrees |
| ActionSpatialVector3 | scale {1.0, 1.0, 1.0} |
详细描述
Validated spatial settings decoded from a notify payload.
The action module owns only these backend-neutral values. Scene, animation, audio and VFX adapters resolve entity handles and bone names synchronously; this value never stores a scene node, component pointer or bone pointer.
在文件 ActionSpatialBlock.h 第 47 行定义.
成员函数说明
◆ fromPayload()
|
static |
Decode and validate the common spatial fields in an owning payload.
- 参数
-
payload Notify payload; unrelated provider-specific fields are ignored.
- 返回
- Typed settings or a stable field-path diagnostic without mutation.
- 备注
- Accepted vector fields are three-element numeric arrays. All components must be finite and scale components must be positive.
在文件 ActionSpatialBlock.cpp 第 64 行定义.
引用了 bone, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::action::FollowPositionOnly, eve::action::FollowTarget, found, index, eve::InvalidArgument, mode, payload, position, positionOffset, rotation, rotationOffsetDegrees, scale, eve::action::Source, eve::Result< T >::success(), eve::action::Target, target, targetIndex, text, eve::action::WorldTransformAtStart, eve::action::ActionSpatialVector3::x, eve::action::ActionSpatialVector3::y , 以及 eve::action::ActionSpatialVector3::z.
被这些函数引用 eve::action::ActionPrefabSpawnBinding::fromPayload(), eve::action::ActionAttackVfxBinding::fromPayload(), eve::action::ActionAudioBinding::fromPayload() , 以及 eve::action::ActionVfxBinding::fromPayload().
◆ operator<=>()
|
default |
Operator <=>.
类成员变量说明
◆ bone
| std::string eve::action::ActionSpatialBinding::bone |
在文件 ActionSpatialBlock.h 第 51 行定义.
被这些函数引用 fromPayload().
◆ mode
| ActionSpatialAttachmentMode eve::action::ActionSpatialBinding::mode = ActionSpatialAttachmentMode::FollowTarget |
在文件 ActionSpatialBlock.h 第 48 行定义.
被这些函数引用 fromPayload().
◆ positionOffset
| ActionSpatialVector3 eve::action::ActionSpatialBinding::positionOffset |
在文件 ActionSpatialBlock.h 第 52 行定义.
被这些函数引用 fromPayload().
◆ rotationOffsetDegrees
| ActionSpatialVector3 eve::action::ActionSpatialBinding::rotationOffsetDegrees |
在文件 ActionSpatialBlock.h 第 53 行定义.
被这些函数引用 fromPayload().
◆ scale
| ActionSpatialVector3 eve::action::ActionSpatialBinding::scale {1.0, 1.0, 1.0} |
在文件 ActionSpatialBlock.h 第 54 行定义.
被这些函数引用 fromPayload().
◆ target
| ActionSpatialTarget eve::action::ActionSpatialBinding::target = ActionSpatialTarget::Source |
在文件 ActionSpatialBlock.h 第 49 行定义.
被这些函数引用 fromPayload().
◆ targetIndex
| std::size_t eve::action::ActionSpatialBinding::targetIndex = 0 |
在文件 ActionSpatialBlock.h 第 50 行定义.
被这些函数引用 fromPayload().
该结构体的文档由以下文件生成:
- src/modules/action/ActionSpatialBlock.h
- src/modules/action/ActionSpatialBlock.cpp