Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
ConditionPresetEvaluator.h File Reference

Stateless runtime evaluator for ConditionPreset expressions. More...

#include <string>
#include <vector>
#include "../Editor/ConditionPreset/ConditionPreset.h"
#include "../Editor/ConditionPreset/NodeConditionRef.h"
#include "../Editor/ConditionPreset/Operand.h"
#include "RuntimeEnvironment.h"
+ Include dependency graph for ConditionPresetEvaluator.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::ConditionPresetEvaluator
 Evaluates a ConditionPreset against a RuntimeEnvironment. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Stateless runtime evaluator for ConditionPreset expressions.

Author
Olympe Engine
Date
2026-03-17

ConditionPresetEvaluator is a fully stateless utility class. All methods are static. It evaluates a ConditionPreset by:

  1. Resolving the left Operand to a float (via the RuntimeEnvironment).
  2. Resolving the right Operand to a float (via the RuntimeEnvironment).
  3. Applying the ComparisonOp to produce a bool result.

Operand resolution strategy:

All errors are reported through the outErrorMsg parameter; the return value is always false when an error occurs.

C++14 compliant — no std::optional, structured bindings, std::filesystem.

Definition in file ConditionPresetEvaluator.h.