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

#include <ComponentNodeData.h>

+ Collaboration diagram for Olympe::NodePort:

Public Member Functions

 NodePort ()=default
 
 NodePort (NodeId nodeId, uint32_t index, bool isOutput=false)
 
json ToJson () const
 

Static Public Member Functions

static NodePort FromJson (const json &data, NodeId nodeId)
 

Public Attributes

PortId portId = InvalidPortId
 
NodeId nodeId = InvalidNodeId
 
uint32_t portIndex = 0
 
Vector position
 
float radius = 4.0f
 
bool isOutput = false
 

Detailed Description

Definition at line 17 of file ComponentNodeData.h.

Constructor & Destructor Documentation

◆ NodePort() [1/2]

Olympe::NodePort::NodePort ( )
default

◆ NodePort() [2/2]

Olympe::NodePort::NodePort ( NodeId  nodeId,
uint32_t  index,
bool  isOutput = false 
)
inline

Definition at line 28 of file ComponentNodeData.h.

Member Function Documentation

◆ FromJson()

static NodePort Olympe::NodePort::FromJson ( const json data,
NodeId  nodeId 
)
inlinestatic

Definition at line 44 of file ComponentNodeData.h.

References GetComponentTypeID_Static(), Olympe::InvalidPortId, and nodeId.

Referenced by Olympe::ComponentNode::FromJson().

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

◆ ToJson()

json Olympe::NodePort::ToJson ( ) const
inline

Definition at line 33 of file ComponentNodeData.h.

References GetComponentTypeID_Static(), isOutput, portId, portIndex, position, radius, Vector::x, Vector::y, and Vector::z.

+ Here is the call graph for this function:

Member Data Documentation

◆ isOutput

bool Olympe::NodePort::isOutput = false

Definition at line 25 of file ComponentNodeData.h.

Referenced by ToJson().

◆ nodeId

NodeId Olympe::NodePort::nodeId = InvalidNodeId

Definition at line 20 of file ComponentNodeData.h.

Referenced by FromJson().

◆ portId

PortId Olympe::NodePort::portId = InvalidPortId

Definition at line 19 of file ComponentNodeData.h.

Referenced by ToJson().

◆ portIndex

uint32_t Olympe::NodePort::portIndex = 0

Definition at line 21 of file ComponentNodeData.h.

Referenced by ToJson().

◆ position

Vector Olympe::NodePort::position

Definition at line 22 of file ComponentNodeData.h.

Referenced by ToJson().

◆ radius

float Olympe::NodePort::radius = 4.0f

Definition at line 24 of file ComponentNodeData.h.

Referenced by ToJson().


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