Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Olympe::NodePreset Struct Reference

A saved node configuration that can be applied to the active graph. More...

#include <NodePresets.h>

+ Collaboration diagram for Olympe::NodePreset:

Public Member Functions

nlohmann::json ToJson () const
 

Static Public Member Functions

static NodePreset FromJson (const nlohmann::json &j)
 

Public Attributes

std::string name
 Unique preset identifier.
 
std::string description
 Human-readable description.
 
std::string category
 Category for grouping in the UI.
 
nlohmann::json nodeData
 JSON snapshot of the node(s)
 
std::vector< intnodeIds
 For multi-node presets: list of involved IDs.
 

Detailed Description

A saved node configuration that can be applied to the active graph.

Definition at line 37 of file NodePresets.h.

Member Function Documentation

◆ FromJson()

NodePreset Olympe::NodePreset::FromJson ( const nlohmann::json j)
static

Definition at line 38 of file NodePresets.cpp.

References GetComponentTypeID_Static(), and name.

Referenced by Olympe::NodePresetManager::LoadPresets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToJson()

json Olympe::NodePreset::ToJson ( ) const

Definition at line 22 of file NodePresets.cpp.

References category, description, GetComponentTypeID_Static(), name, nodeData, and nodeIds.

+ Here is the call graph for this function:

Member Data Documentation

◆ category

std::string Olympe::NodePreset::category

Category for grouping in the UI.

Definition at line 40 of file NodePresets.h.

Referenced by ToJson().

◆ description

std::string Olympe::NodePreset::description

Human-readable description.

Definition at line 39 of file NodePresets.h.

Referenced by ToJson().

◆ name

std::string Olympe::NodePreset::name

Unique preset identifier.

Definition at line 38 of file NodePresets.h.

Referenced by FromJson(), and ToJson().

◆ nodeData

nlohmann::json Olympe::NodePreset::nodeData

JSON snapshot of the node(s)

Definition at line 41 of file NodePresets.h.

Referenced by ToJson().

◆ nodeIds

std::vector<int> Olympe::NodePreset::nodeIds

For multi-node presets: list of involved IDs.

Definition at line 42 of file NodePresets.h.

Referenced by ToJson().


The documentation for this struct was generated from the following files: