载入中...
搜索中...
未找到
eve::action::IActionEffectExecutor类 参考abstract
Active-phase effect/operation preparation port. 更多...
#include <Action.h>
类 eve::action::IActionEffectExecutor 继承关系图:
Public 成员函数 | |
| virtual | ~IActionEffectExecutor ()=default |
| Releases IActionEffectExecutor resources. | |
| virtual Result< std::unique_ptr< IActionEffectOperation > > | prepare (const ActionDefinition &definition, const ActionRequest &request, const sensing::TargetSet *targets, SimulationTick tick)=0 |
| Prepare the active operation once without applying its effect. | |
详细描述
Active-phase effect/operation preparation port.
Effect IDs are resolved by the provider against the canonical effects registry/container. A Weapon adapter can use the same port for its Active fire operation while preserving weapon-specific state in the weapon module. targets is borrowed for this call only. The returned unique_ptr is the sole owner of staged external state until ActionRuntime commits or rolls it back.
构造及析构函数说明
◆ ~IActionEffectExecutor()
|
virtualdefault |
Releases IActionEffectExecutor resources.
成员函数说明
◆ prepare()
|
pure virtual |
Prepare the active operation once without applying its effect.
- 参数
-
definition Action definition containing effect references. request Original owning request. targets Resolved target set, or null when no target was selected. tick Deterministic simulation tick of the Active transition.
- 返回
- A move-only staged operation or a structured preparation failure.
该类的文档由以下文件生成:
- src/modules/action/Action.h