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; sole ActionRuntime phase authority. | |
| condition::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; duration must match timing.total(). | |
详细描述
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.
Authority split when both timing and timeline are present:
timing— ActionRuntime phase transitions (sole phase authority)timeline— choreography (tracks/notifies);durationmust equaltiming.total()timeline->splitTimestamps— physical sections for editor/montage only
成员函数说明
◆ validate()
| Result< void > eve::action::ActionDefinition::validate | ( | ) | const |
Validate definition invariants without changing the definition.
- 返回
- Success or a structured rejection diagnostic.
在文件 Action.cpp 第 106 行定义.
引用了 eve::action::ActionTiming::active, condition, cost, effectIds, eve::Diagnostic::error(), eve::action::Explicit, eve::Result< T >::failure(), eve::InvalidArgument, eve::condition::Condition::isValid(), eve::Duration::nanoseconds(), eve::action::None, eve::action::Query, eve::action::ActionTiming::recover, eve::Result< T >::success(), targetingMode, targetingSpec, timeline, timing, eve::action::ActionTiming::total(), valid , 以及 eve::action::ActionTiming::windup.
类成员变量说明
◆ activeExecutionRequired
| bool eve::action::ActionDefinition::activeExecutionRequired = false |
◆ condition
| condition::Condition eve::action::ActionDefinition::condition |
◆ cost
| std::optional<resource::CostSpec> eve::action::ActionDefinition::cost |
Optional canonical cost reserved and committed by the pipeline.
被这些函数引用 validate().
◆ effectIds
| std::vector<std::string> eve::action::ActionDefinition::effectIds |
Stable effect-definition ids interpreted by the active executor.
被这些函数引用 validate().
◆ id
| LogicalId eve::action::ActionDefinition::id |
◆ metadata
| Value::Object eve::action::ActionDefinition::metadata |
◆ targetingMode
| TargetingMode eve::action::ActionDefinition::targetingMode = TargetingMode::None |
◆ targetingSpec
| std::optional<sensing::TargetingSpec> eve::action::ActionDefinition::targetingSpec |
◆ timeline
| std::optional<ActionTimeline> eve::action::ActionDefinition::timeline |
Optional versioned choreography; duration must match timing.total().
被这些函数引用 eve::action::ActionRuntime::advance(), eve::action::ActionRuntime::clearSectionTimingOverride(), eve::action::ActionRuntime::sectionProgress(), eve::action::ActionRuntime::setSectionTimingOverride() , 以及 validate().
◆ timing
| ActionTiming eve::action::ActionDefinition::timing |
Timed phase policy; sole ActionRuntime phase authority.
被这些函数引用 eve::action::ActionRuntime::advance() , 以及 validate().
该结构体的文档由以下文件生成:
- src/modules/action/Action.h
- src/modules/action/Action.cpp