载入中...
搜索中...
未找到
Condition.h 文件参考

Pure, explainable condition trees shared by gameplay domains. 更多...

#include "common/Export.h"
#include "common/Value.h"
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#include <vector>

浏览源代码.

类

struct  eve::condition::ScriptConditionDeclaration
 Metadata a script policy must declare before it is used by a condition. 更多...
 
class  eve::condition::ConditionResult
 Explain one condition evaluation in a UI- and log-friendly form. 更多...
 
class  eve::condition::EvaluationContext
 Read-only state boundary used by every condition evaluation. 更多...
 
class  eve::condition::Condition
 Immutable condition AST node. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::condition
 

枚举

enum class  eve::condition::ConditionKind : std::uint8_t {
  eve::condition::All , eve::condition::Any , eve::condition::Not , eve::condition::Compare ,
  eve::condition::PolicyCall
}
 Node kind in the side-effect-free condition AST. 更多...
 
enum class  eve::condition::CompareOperator : std::uint8_t {
  eve::condition::Equal , eve::condition::NotEqual , eve::condition::Less , eve::condition::LessEqual ,
  eve::condition::Greater , eve::condition::GreaterEqual , eve::condition::Exists
}
 Scalar comparison used by a Compare node. 更多...
 
enum class  eve::condition::DeterminismLevel : std::uint8_t { eve::condition::BitExact , eve::condition::TickDeterministic , eve::condition::ToleranceBounded , eve::condition::ExplicitlyNondeterministic }
 Determinism contract declared by a script-backed condition policy. 更多...
 
enum class  eve::condition::ConditionReasonCode : std::uint32_t {
  eve::condition::Passed = 0 , eve::condition::ChildFailed = 1 , eve::condition::NoChildPassed = 2 , eve::condition::Negated = 3 ,
  eve::condition::MissingValue = 4 , eve::condition::ValueMismatch = 5 , eve::condition::TagMissing = 6 , eve::condition::TagUnavailable = 7 ,
  eve::condition::AttributeMissing = 8 , eve::condition::ResourceMissing = 9 , eve::condition::StateMissing = 10 , eve::condition::StateMismatch = 11 ,
  eve::condition::AuthorityDenied = 12 , eve::condition::AuthorityUnavailable = 13 , eve::condition::PolicyRejected = 14 , eve::condition::PolicyUnavailable = 15 ,
  eve::condition::InvalidCondition = 16
}
 Stable machine-readable explanation code for a condition outcome. 更多...
 

函数

const char * eve::condition::conditionReasonCodeName (ConditionReasonCode code) noexcept
 Return the stable lowercase spelling of a condition reason code. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used.
 
const char * eve::condition::conditionKindName (ConditionKind kind) noexcept
 Return the stable lowercase spelling of a condition node kind. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used.
 
const char * eve::condition::compareOperatorName (CompareOperator op) noexcept
 Return the stable lowercase spelling of a comparison operator. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used.
 

详细描述

Pure, explainable condition trees shared by gameplay domains.

The AST is intentionally thin: boolean combinators, Compare over a keyed value space, and PolicyCall for named read-only policies. Tag / attribute / resource / state / authority checks are key and policy conventions documented in ConditionKeys.h — they are not ConditionKind variants.

在文件 Condition.h 中定义.