载入中...
搜索中...
未找到
SkillAction.cpp
浏览该文件的文档.
11 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "skill id must not be empty", "skill.id"));
15 eve::DiagnosticCode::InvalidArgument, "skill id cannot form a valid action logical id", "skill.id"));
72 eve::DiagnosticCode::InvalidArgument, "self skill request cannot carry an explicit target", "target"));
RPG Skill to renderer-independent Action adapter.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result< Duration > fromSeconds(double seconds)
Convert finite seconds to the nearest nanosecond.
Definition Time.cpp:16
static std::optional< LogicalId > fromParts(std::string_view namespaceName, std::string_view name)
Builds a logical ID from separate namespace and name components.
Definition Identity.cpp:48
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
static eve::Result< action::ActionRequest > makeRequest(const SkillDefinition &skill, std::optional< ecs::EntityHandle > source=std::nullopt, std::optional< ecs::EntityHandle > target=std::nullopt, eve::SimulationTick requestedTick=eve::SimulationTick::zero())
Build a request for one skill invocation.
Definition SkillAction.cpp:62
static eve::Result< action::ActionExecutionId > submit(action::ActionRuntime &runtime, const SkillDefinition &skill, std::optional< ecs::EntityHandle > source=std::nullopt, std::optional< ecs::EntityHandle > target=std::nullopt, eve::SimulationTick requestedTick=eve::SimulationTick::zero())
Translate and submit one skill to an existing lifecycle owner.
Definition SkillAction.cpp:88
static eve::Result< action::ActionDefinition > makeDefinition(const SkillDefinition &skill)
Build the common definition for one RPG skill.
Definition SkillAction.cpp:34
@ Explicit
The request already owns the selected ECS target handles.
@ InvalidArgument
@ PreconditionViolation
Immutable-by-convention definition of one action kind.
Definition Action.h:90
One caller-owned request to instantiate an action execution.
Definition Action.h:127
eve::decision::Condition castCondition
Side-effect-free condition tree required before this skill can cast.
Definition Skill.h:38
std::optional< eve::resource::CostSpec > cost
Canonical resource cost; AttributeSet is an adapter, not a second cost model.
Definition Skill.h:34