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

Global registry for ConditionPreset objects, with CRUD, persistence, and validation. More...

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

Go to the source code of this file.

Classes

class  Olympe::ConditionPresetRegistry
 Manages the global pool of ConditionPreset objects. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Global registry for ConditionPreset objects, with CRUD, persistence, and validation.

Author
Olympe Engine
Date
2026-03-16

ConditionPresetRegistry owns all ConditionPreset instances for a project. It is persisted to and loaded from ./Blueprints/Presets/condition_presets.json.

Typical usage:

ConditionPresetRegistry registry;
registry.Load("./Blueprints/Presets/condition_presets.json");
ConditionPreset p;
p.name = "Condition #1";
p.left = Operand::CreateVariable("mHealth");
p.op = ComparisonOp::LessEqual;
p.right = Operand::CreateConst(2.0);
std::string id = registry.CreatePreset(p);
registry.Save("./Blueprints/Presets/condition_presets.json");
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56

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

Definition in file ConditionPresetRegistry.h.