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

Defines the Operand type used in condition preset expressions. More...

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

Go to the source code of this file.

Classes

struct  Olympe::Operand
 One side of a ConditionPreset comparison expression. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Enumerations

enum class  Olympe::OperandMode { Olympe::Variable , Olympe::Const , Olympe::Pin }
 Discriminates which source the operand draws its value from. More...
 

Detailed Description

Defines the Operand type used in condition preset expressions.

Author
Olympe Engine
Date
2026-03-16

An Operand represents one side (left or right) of a condition comparison. It can refer to a blackboard variable by name (Variable mode), hold a literal numeric constant (Const mode), or represent an external data input pin on the node (Pin mode).

C++14 compliant — uses std::variant via mpark::variant polyfill is NOT required here; the union is modelled with explicit tagged members to stay within C++14 without extra dependencies.

Definition in file Operand.h.