Read-only state boundary used by every condition evaluation. 更多...
#include <Condition.h>
Public 成员函数 | |
| virtual | ~EvaluationContext ()=default |
| Releases EvaluationContext resources. | |
| virtual std::optional< Value > | value (std::string_view key) const =0 |
| Query a named scalar or structured value for Compare nodes. | |
| virtual std::optional< ConditionResult > | policy (std::string_view name, const Value &arguments) const =0 |
| Evaluate a named read-only policy with owned arguments. | |
详细描述
Read-only state boundary used by every condition evaluation.
Implementations must not mutate domain state. Methods are synchronous and called on the caller's thread; implementations must not retain the caller's query keys or invoke unknown callbacks while holding a lock. nullopt means the requested capability/value is unavailable, which is distinct from a known false value. Domain axes (tag/attr/resource/state) are addressed as prefixed keys through value; authority uses PolicyCall authority.allow.
在文件 Condition.h 第 175 行定义.
构造及析构函数说明
◆ ~EvaluationContext()
|
virtualdefault |
Releases EvaluationContext resources.
成员函数说明
◆ policy()
|
pure virtual |
Evaluate a named read-only policy with owned arguments.
在 eve::card::CardPlayConditionContext, eve::dialogue::StateEvaluationContext, eve::emergence::FactStore , 以及 eve::rpg::SkillConditionContext 内被实现.
◆ value()
|
pure virtual |
Query a named scalar or structured value for Compare nodes.
Canonical keys may use domain prefixes from ConditionKeys.h (tag:, attr:, resource:, state:). Bare keys are domain-defined.
在 eve::card::CardPlayConditionContext, eve::dialogue::StateEvaluationContext, eve::emergence::FactStore , 以及 eve::rpg::SkillConditionContext 内被实现.
该类的文档由以下文件生成:
- src/engine/common/Condition.h