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::NodeGroup Struct Reference

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< intnodeIds
 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)
 

Detailed Description

A named set of node IDs that can be collapsed into a single header.

Definition at line 35 of file NodeGroup.h.

Member Function Documentation

◆ FromJson()

NodeGroup Olympe::NodeGroup::FromJson ( const nlohmann::json j)
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:

◆ ToJson()

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:

Member Data Documentation

◆ collapsedPosX

float Olympe::NodeGroup::collapsedPosX = 0.0f

Position used when collapsed.

Definition at line 40 of file NodeGroup.h.

Referenced by ToJson().

◆ collapsedPosY

float Olympe::NodeGroup::collapsedPosY = 0.0f

Definition at line 41 of file NodeGroup.h.

Referenced by ToJson().

◆ headerColor

unsigned int Olympe::NodeGroup::headerColor = 0xFF4444FFu

RGBA packed (default: blue)

Definition at line 42 of file NodeGroup.h.

Referenced by ToJson().

◆ id

int Olympe::NodeGroup::id = -1

Unique group ID.

Definition at line 36 of file NodeGroup.h.

Referenced by Olympe::GroupManager::CreateGroup(), FromJson(), and ToJson().

◆ isCollapsed

bool Olympe::NodeGroup::isCollapsed = false

True = render as header only.

Definition at line 39 of file NodeGroup.h.

Referenced by ToJson().

◆ name

std::string Olympe::NodeGroup::name

Display name for the group.

Definition at line 37 of file NodeGroup.h.

Referenced by ToJson().

◆ nodeIds

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

IDs of member nodes.

Definition at line 38 of file NodeGroup.h.

Referenced by ToJson().


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