![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
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< int > | nodeIds |
| For multi-node presets: list of involved IDs. | |
A saved node configuration that can be applied to the active graph.
Definition at line 37 of file NodePresets.h.
|
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:| 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:| std::string Olympe::NodePreset::category |
Category for grouping in the UI.
Definition at line 40 of file NodePresets.h.
Referenced by ToJson().
| std::string Olympe::NodePreset::description |
| std::string Olympe::NodePreset::name |
Unique preset identifier.
Definition at line 38 of file NodePresets.h.
Referenced by FromJson(), and ToJson().
| nlohmann::json Olympe::NodePreset::nodeData |
| 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().