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

Defines ConditionPreset — a reusable, globally-stored condition expression. More...

#include <string>
#include <utility>
#include "Operand.h"
#include "../../third_party/nlohmann/json.hpp"
+ Include dependency graph for ConditionPreset.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Olympe::ConditionPreset
 A globally-stored, reusable condition expression. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Enumerations

enum class  Olympe::ComparisonOp {
  Olympe::Equal , Olympe::NotEqual , Olympe::Less , Olympe::LessEqual ,
  Olympe::Greater , Olympe::GreaterEqual
}
 The relational operator used in a ConditionPreset. More...
 

Detailed Description

Defines ConditionPreset — a reusable, globally-stored condition expression.

Author
Olympe Engine
Date
2026-03-16

A ConditionPreset represents a single boolean comparison of the form: <left Operand> <ComparisonOp> <right Operand>

Presets are stored in the global ConditionPresetRegistry and referenced by NodeBranch nodes via NodeConditionRef. This separation allows the same condition to be reused across multiple nodes and edited in one place.

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

Definition in file ConditionPreset.h.