载入中...
搜索中...
未找到
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 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.

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

成员函数说明

◆ validate()

类成员变量说明

◆ activeExecutionRequired

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

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

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

被这些函数引用 eve::action::decodeAbilityAsset().

◆ condition

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

Side-effect-free precondition tree.

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

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

◆ cost

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

Optional canonical cost reserved and committed by the pipeline.

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

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

◆ effectIds

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

Stable effect-definition ids interpreted by the active executor.

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

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

◆ id

LogicalId eve::action::ActionDefinition::id

Scoped logical definition identity, not a runtime execution id.

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

被这些函数引用 eve::action::decodeAbilityAsset().

◆ metadata

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

Deterministic extension data owned by this definition.

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

被这些函数引用 eve::action::decodeAbilityAsset().

◆ targetingMode

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

Target acquisition policy for this action.

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

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

◆ targetingSpec

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

Constraints used when targetingMode is Query.

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

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

◆ timeline

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

Optional versioned choreography authored by the action editor.

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

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

◆ timing

ActionTiming eve::action::ActionDefinition::timing

Timed phase policy in simulation durations.

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

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


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