载入中...
搜索中...
未找到
RuleEngine.h
浏览该文件的文档.
128 [[nodiscard]] int activationCount() const noexcept { return static_cast<int>(activations_.size()); }
149 [[nodiscard]] std::uint64_t lastDrainEvaluations() const noexcept { return lastDrainEvaluations_; }
170 [[nodiscard]] eve::Result<void> executeActions(const std::vector<EmergenceAction>& actions, std::uint64_t tick);
Authoritative, rule-visible world facts implementing EvaluationContext.
Move-only, checked operation results for the common layer.
Immutable emergence rule definitions and deferred activations.
Explicit Value/Owned/Borrowed semantics at the Squirrel boundary.
Inverted index from fact keys to interested rule ids.
Explain one condition evaluation in a UI- and log-friendly form.
Definition Condition.h:129
Mutable fact bag that doubles as a read-only Condition evaluation context.
Definition FactStore.h:60
Indexed, deferred rule evaluator for tens of thousands of conditions.
Definition RuleEngine.h:43
std::uint64_t wakeKeyEvents() const noexcept
Diagnostic: distinct keys that woke at least one rule since construction/clear.
Definition RuleEngine.h:151
const FactStore & facts() const noexcept
Borrow the authoritative fact store for read-only inspection. @ownership Borrowed; this engine remain...
Definition RuleEngine.h:94
RuleEngine & operator=(const RuleEngine &)=delete
std::uint64_t lastDrainEvaluations() const noexcept
Diagnostic: condition evaluations performed during the last drain.
Definition RuleEngine.h:149
int dirtyCount() const noexcept
Diagnostic: rules marked dirty since the last successful drain start.
Definition RuleEngine.h:147
RuleEngine(const RuleEngine &)=delete
int activationCount() const noexcept
Activations retained from the most recent drain batches since clearActivations.
Definition RuleEngine.h:128
Definition ConditionCodec.cpp:10
One immutable rule definition owned by the catalogue.
Definition RuleTypes.h:38
Handle domain for module-owned rule engines.
Definition RuleEngine.h:25
Handle plus owner-lifetime epoch for a non-ECS registry object.
Definition RuntimeRegistry.h:91