Immutable-by-convention definition of one action kind. 更多...
#include <Action.h>
Public 成员函数 | |
| Result< void > | validate () const |
| Validate definition invariants without changing the definition. | |
Public 属性 | |
| LogicalId | id |
| Scoped logical definition identity, not a runtime execution id. | |
| ActionTiming | timing |
| Timed phase policy in simulation durations. | |
| decision::Condition | condition |
| Side-effect-free precondition tree. | |
| TargetingMode | targetingMode = TargetingMode::None |
| Target acquisition policy for this action. | |
| std::optional< sensing::TargetingSpec > | targetingSpec |
| Constraints used when targetingMode is Query. | |
| std::optional< resource::CostSpec > | cost |
| Optional canonical cost reserved and committed by the pipeline. | |
| std::vector< std::string > | effectIds |
| Stable effect-definition ids interpreted by the active executor. | |
| bool | activeExecutionRequired = false |
| Whether Active must call the injected executor even with no effect ids. | |
| Value::Object | metadata |
| Deterministic extension data owned by this definition. | |
| std::optional< ActionTimeline > | timeline |
| Optional versioned choreography authored by the action editor. | |
详细描述
Immutable-by-convention definition of one action kind.
The definition owns condition and metadata values. A cost is the canonical common CostSpec; effectIds are references resolved by the injected active executor. No RPG, RTS, Weapon or Card type is included here.
成员函数说明
◆ validate()
| Result< void > eve::action::ActionDefinition::validate | ( | ) | const |
Validate definition invariants without changing the definition.
- 返回
- Success or a structured rejection diagnostic.
在文件 Action.cpp 第 56 行定义.
引用了 eve::action::ActionTiming::active, condition, cost, effectIds, eve::Diagnostic::error(), eve::action::Explicit, eve::Result< T >::failure(), eve::InvalidArgument, eve::decision::Condition::isValid(), eve::Duration::nanoseconds(), eve::action::None, eve::action::Query, eve::action::ActionTiming::recover, eve::Result< T >::success(), targetingMode, targetingSpec, timeline, timing, eve::Duration::tryAdd(), valid , 以及 eve::action::ActionTiming::windup.
类成员变量说明
◆ activeExecutionRequired
| bool eve::action::ActionDefinition::activeExecutionRequired = false |
Whether Active must call the injected executor even with no effect ids.
被这些函数引用 eve::action::decodeAbilityAsset().
◆ condition
| decision::Condition eve::action::ActionDefinition::condition |
Side-effect-free precondition tree.
被这些函数引用 eve::action::decodeAbilityAsset() , 以及 validate().
◆ cost
| std::optional<resource::CostSpec> eve::action::ActionDefinition::cost |
Optional canonical cost reserved and committed by the pipeline.
被这些函数引用 eve::action::decodeAbilityAsset() , 以及 validate().
◆ effectIds
| std::vector<std::string> eve::action::ActionDefinition::effectIds |
Stable effect-definition ids interpreted by the active executor.
被这些函数引用 eve::action::decodeAbilityAsset() , 以及 validate().
◆ id
| LogicalId eve::action::ActionDefinition::id |
Scoped logical definition identity, not a runtime execution id.
被这些函数引用 eve::action::decodeAbilityAsset().
◆ metadata
| Value::Object eve::action::ActionDefinition::metadata |
Deterministic extension data owned by this definition.
被这些函数引用 eve::action::decodeAbilityAsset().
◆ targetingMode
| TargetingMode eve::action::ActionDefinition::targetingMode = TargetingMode::None |
Target acquisition policy for this action.
被这些函数引用 eve::action::decodeAbilityAsset() , 以及 validate().
◆ targetingSpec
| std::optional<sensing::TargetingSpec> eve::action::ActionDefinition::targetingSpec |
Constraints used when targetingMode is Query.
被这些函数引用 eve::action::decodeAbilityAsset() , 以及 validate().
◆ timeline
| std::optional<ActionTimeline> eve::action::ActionDefinition::timeline |
Optional versioned choreography authored by the action editor.
被这些函数引用 eve::action::ActionRuntime::advance(), eve::action::decodeAbilityAsset() , 以及 validate().
◆ timing
| ActionTiming eve::action::ActionDefinition::timing |
Timed phase policy in simulation durations.
被这些函数引用 eve::action::ActionRuntime::advance(), eve::action::decodeAbilityAsset() , 以及 validate().
该结构体的文档由以下文件生成:
- src/modules/action/Action.h
- src/modules/action/Action.cpp