Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Namespaces | Typedefs | Variables
Clipboard.cpp File Reference

Implementation of NodeGraphClipboard. More...

#include "Clipboard.h"
#include "../system/system_utils.h"
#include "../third_party/imgui/imgui.h"
#include "../third_party/imnodes/imnodes.h"
#include "../third_party/nlohmann/json.hpp"
#include <string>
#include <vector>
#include <cstring>
#include <cfloat>
#include <algorithm>
+ Include dependency graph for Clipboard.cpp:

Go to the source code of this file.

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Typedefs

using json = nlohmann::json
 

Variables

static constexpr int Olympe::CLIP_GRAPH_ID_MULTIPLIER = 10000
 

Detailed Description

Implementation of NodeGraphClipboard.

Author
Olympe Engine
Date
2026-02-24

Serialisation format (JSON, one object per copied node): { "nodes": [ { "type": "BT_Action", "name": "Move", "actionType": "MoveToLocation", "conditionType": "", "decoratorType": "", "params": { "speed": "5.0" }, "dx": 0.0, "dy": 0.0 } ] }

"dx"/"dy" are position offsets relative to the top-left bounding corner of the copied selection, so pasted nodes reproduce the original spatial layout.

C++14 compliant - no C++17/20 features.

Definition in file Clipboard.cpp.

Typedef Documentation

◆ json

Definition at line 41 of file Clipboard.cpp.