Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Olympe::NodeGraphShared::BlueprintAdapter Class Reference

#include <BlueprintAdapter.h>

+ Collaboration diagram for Olympe::NodeGraphShared::BlueprintAdapter:

Public Member Functions

 BlueprintAdapter (Blueprint::CommandStack *stack, int graphId)
 
int CreateNode (const std::string &nodeType, float posX, float posY, const std::string &nodeName="")
 
void DeleteNode (int nodeId)
 
void MoveNode (int nodeId, float oldX, float oldY, float newX, float newY)
 
void ConnectNodes (int parentId, int childId)
 
void DisconnectNodes (int parentId, int childId)
 
void DuplicateNode (int nodeId)
 

Private Attributes

Blueprint::CommandStackm_stack
 
std::string m_graphId
 

Detailed Description

Definition at line 13 of file BlueprintAdapter.h.

Constructor & Destructor Documentation

◆ BlueprintAdapter()

Olympe::NodeGraphShared::BlueprintAdapter::BlueprintAdapter ( Blueprint::CommandStack stack,
int  graphId 
)
inline

Definition at line 16 of file BlueprintAdapter.h.

Member Function Documentation

◆ ConnectNodes()

void Olympe::NodeGraphShared::BlueprintAdapter::ConnectNodes ( int  parentId,
int  childId 
)
inline

Definition at line 42 of file BlueprintAdapter.h.

References Olympe::Blueprint::CommandStack::ExecuteCommand(), GetComponentTypeID_Static(), m_graphId, and m_stack.

+ Here is the call graph for this function:

◆ CreateNode()

int Olympe::NodeGraphShared::BlueprintAdapter::CreateNode ( const std::string &  nodeType,
float  posX,
float  posY,
const std::string &  nodeName = "" 
)
inline

Definition at line 19 of file BlueprintAdapter.h.

References Olympe::Blueprint::CommandStack::ExecuteCommand(), GetComponentTypeID_Static(), m_graphId, and m_stack.

+ Here is the call graph for this function:

◆ DeleteNode()

void Olympe::NodeGraphShared::BlueprintAdapter::DeleteNode ( int  nodeId)
inline

Definition at line 28 of file BlueprintAdapter.h.

References Olympe::Blueprint::CommandStack::ExecuteCommand(), GetComponentTypeID_Static(), m_graphId, and m_stack.

+ Here is the call graph for this function:

◆ DisconnectNodes()

void Olympe::NodeGraphShared::BlueprintAdapter::DisconnectNodes ( int  parentId,
int  childId 
)
inline

Definition at line 49 of file BlueprintAdapter.h.

References Olympe::Blueprint::CommandStack::ExecuteCommand(), GetComponentTypeID_Static(), m_graphId, and m_stack.

+ Here is the call graph for this function:

◆ DuplicateNode()

void Olympe::NodeGraphShared::BlueprintAdapter::DuplicateNode ( int  nodeId)
inline

Definition at line 56 of file BlueprintAdapter.h.

References Olympe::Blueprint::CommandStack::ExecuteCommand(), GetComponentTypeID_Static(), m_graphId, and m_stack.

+ Here is the call graph for this function:

◆ MoveNode()

void Olympe::NodeGraphShared::BlueprintAdapter::MoveNode ( int  nodeId,
float  oldX,
float  oldY,
float  newX,
float  newY 
)
inline

Definition at line 35 of file BlueprintAdapter.h.

References Olympe::Blueprint::CommandStack::ExecuteCommand(), GetComponentTypeID_Static(), m_graphId, and m_stack.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_graphId

std::string Olympe::NodeGraphShared::BlueprintAdapter::m_graphId
private

◆ m_stack

Blueprint::CommandStack* Olympe::NodeGraphShared::BlueprintAdapter::m_stack
private

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