载入中...
搜索中...
未找到
eve::action::ActionDefinition结构体 参考

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); duration must equal timing.total()
  • timeline->splitTimestamps — physical sections for editor/montage only

在文件 Action.h 第 119 行定义.

成员函数说明

◆ validate()

类成员变量说明

◆ activeExecutionRequired

bool eve::action::ActionDefinition::activeExecutionRequired = false

Whether Active must call the injected executor even with no effect ids.

在文件 Action.h 第 135 行定义.

◆ condition

condition::Condition eve::action::ActionDefinition::condition

Side-effect-free precondition tree.

在文件 Action.h 第 125 行定义.

被这些函数引用 validate().

◆ cost

std::optional<resource::CostSpec> eve::action::ActionDefinition::cost

Optional canonical cost reserved and committed by the pipeline.

在文件 Action.h 第 131 行定义.

被这些函数引用 validate().

◆ effectIds

std::vector<std::string> eve::action::ActionDefinition::effectIds

Stable effect-definition ids interpreted by the active executor.

在文件 Action.h 第 133 行定义.

被这些函数引用 validate().

◆ id

LogicalId eve::action::ActionDefinition::id

Scoped logical definition identity, not a runtime execution id.

在文件 Action.h 第 121 行定义.

◆ metadata

Value::Object eve::action::ActionDefinition::metadata

Deterministic extension data owned by this definition.

在文件 Action.h 第 137 行定义.

◆ targetingMode

TargetingMode eve::action::ActionDefinition::targetingMode = TargetingMode::None

Target acquisition policy for this action.

在文件 Action.h 第 127 行定义.

被这些函数引用 validate().

◆ targetingSpec

std::optional<sensing::TargetingSpec> eve::action::ActionDefinition::targetingSpec

Constraints used when targetingMode is Query.

在文件 Action.h 第 129 行定义.

被这些函数引用 validate().

◆ timeline

std::optional<ActionTimeline> eve::action::ActionDefinition::timeline

◆ timing

ActionTiming eve::action::ActionDefinition::timing

Timed phase policy; sole ActionRuntime phase authority.

在文件 Action.h 第 123 行定义.

被这些函数引用 eve::action::ActionRuntime::advance() , 以及 validate().


该结构体的文档由以下文件生成: