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

Defines MathOpOperand — operand references for MathOp nodes. More...

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

Go to the source code of this file.

Classes

struct  Olympe::MathOpOperand
 Represents one arithmetic operand (left A, right B) in a MathOp node. More...
 
struct  Olympe::MathOpRef
 Complete reference for a MathOp node: left operand, operator, right operand. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Defines MathOpOperand — operand references for MathOp nodes.

Author
Olympe Engine
Date
2026-03-18

MathOpOperand is a self-contained representation of one arithmetic operand for a MathOp node. It mirrors the OperandRef/ConditionRef pattern, supporting three modes: Variable (blackboard reference), Const (literal value), or Pin (data input pin).

A MathOp has three operands: left (A), operator, right (B). Each operand independently supports Variable/Const/Pin modes with optional dynamic pin generation for Pin-mode operands.

C++14 compliant.

Definition in file MathOpOperand.h.