One caller-owned request to instantiate an action execution. 更多...
#include <Action.h>
Public 成员函数 | |
| Result< void > | validate (const ActionDefinition &definition) const |
| Validate request/definition correspondence without side effects. | |
Public 属性 | |
| LogicalId | actionId |
| Definition identity this request intends to execute. | |
| std::optional< ecs::EntityHandle > | source |
| Optional source ECS identity; the action core does not interpret its type. | |
| std::vector< ecs::EntityHandle > | targetEntities |
| Explicit targets, used only when the definition selects Explicit. | |
| std::optional< sensing::TargetingQuery > | targetingQuery |
| Query input, used only when the definition selects Query. | |
| Value::Object | parameters |
| Adapter-owned deterministic parameters copied into the execution. | |
| std::string | transactionId |
| Optional caller-supplied transaction correlation identifier. | |
| SimulationTick | requestedTick = SimulationTick::zero() |
| Simulation tick at which the request entered the pipeline. | |
详细描述
One caller-owned request to instantiate an action execution.
ECS handles are generation-checked by the ECS boundary when a domain executor resolves them. The request stores handles, never long-lived raw pointers. requestedTick is the deterministic starting point for this execution.
成员函数说明
◆ validate()
| Result< void > eve::action::ActionRequest::validate | ( | const ActionDefinition & | definition | ) | const |
Validate request/definition correspondence without side effects.
- 参数
-
definition Definition selected by the caller.
- 返回
- Success or a structured rejection diagnostic.
在文件 Action.cpp 第 100 行定义.
引用了 actionId, eve::Diagnostic::error(), eve::action::Explicit, eve::Result< T >::failure(), eve::InvalidArgument, eve::action::None, eve::PreconditionViolation, eve::action::Query, eve::Result< T >::success(), targetEntities, targetingQuery , 以及 valid.
类成员变量说明
◆ actionId
| LogicalId eve::action::ActionRequest::actionId |
Definition identity this request intends to execute.
被这些函数引用 eve::rts::ActionAdapter::execute(), eve::rpg::SkillActionAdapter::makeRequest(), eve::weapon::WeaponActionAdapter::makeRequest(), eve::combat::CombatEnemyIntentSource::nextIntent() , 以及 validate().
◆ parameters
| Value::Object eve::action::ActionRequest::parameters |
◆ requestedTick
| SimulationTick eve::action::ActionRequest::requestedTick = SimulationTick::zero() |
Simulation tick at which the request entered the pipeline.
被这些函数引用 eve::action::AbilityControllerRuntime::processNext().
◆ source
| std::optional<ecs::EntityHandle> eve::action::ActionRequest::source |
◆ targetEntities
| std::vector<ecs::EntityHandle> eve::action::ActionRequest::targetEntities |
Explicit targets, used only when the definition selects Explicit.
被这些函数引用 validate().
◆ targetingQuery
| std::optional<sensing::TargetingQuery> eve::action::ActionRequest::targetingQuery |
Query input, used only when the definition selects Query.
被这些函数引用 validate().
◆ transactionId
| std::string eve::action::ActionRequest::transactionId |
该结构体的文档由以下文件生成:
- src/modules/action/Action.h
- src/modules/action/Action.cpp