![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
A named set of node IDs that can be collapsed into a single header. More...
#include <NodeGroup.h>
Public Member Functions | |
| nlohmann::json | ToJson () const |
Static Public Member Functions | |
| static NodeGroup | FromJson (const nlohmann::json &j) |
Public Attributes | |
| int | id = -1 |
| Unique group ID. | |
| std::string | name |
| Display name for the group. | |
| std::vector< int > | nodeIds |
| IDs of member nodes. | |
| bool | isCollapsed = false |
| True = render as header only. | |
| float | collapsedPosX = 0.0f |
| Position used when collapsed. | |
| float | collapsedPosY = 0.0f |
| unsigned int | headerColor = 0xFF4444FFu |
| RGBA packed (default: blue) | |
A named set of node IDs that can be collapsed into a single header.
Definition at line 35 of file NodeGroup.h.
|
static |
Definition at line 38 of file NodeGroup.cpp.
References GetComponentTypeID_Static(), and id.
Referenced by Olympe::GroupManager::LoadFromJson().
Here is the call graph for this function:
Here is the caller graph for this function:| json Olympe::NodeGroup::ToJson | ( | ) | const |
Definition at line 20 of file NodeGroup.cpp.
References collapsedPosX, collapsedPosY, GetComponentTypeID_Static(), headerColor, id, isCollapsed, name, and nodeIds.
Here is the call graph for this function:| float Olympe::NodeGroup::collapsedPosX = 0.0f |
| float Olympe::NodeGroup::collapsedPosY = 0.0f |
Definition at line 41 of file NodeGroup.h.
Referenced by ToJson().
| int Olympe::NodeGroup::id = -1 |
Unique group ID.
Definition at line 36 of file NodeGroup.h.
Referenced by Olympe::GroupManager::CreateGroup(), FromJson(), and ToJson().
| std::string Olympe::NodeGroup::name |
| std::vector<int> Olympe::NodeGroup::nodeIds |