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

#include <BTNodeGraphManager.h>

Public Member Functions

 GraphNode ()=default
 
 GraphNode (int nodeId, NodeType nodeType, const std::string &nodeName="")
 

Public Attributes

int id = 0
 
NodeType type = NodeType::BT_Action
 
std::string name
 
float posX = 0.0f
 
float posY = 0.0f
 
std::string actionType
 
std::string conditionType
 
std::string decoratorType
 
std::string subgraphUUID
 
std::map< std::string, std::string > parameters
 
std::vector< intchildIds
 
int decoratorChildId = -1
 
std::string eventType
 Event type that triggers this OnEvent node Only used for BT_OnEvent nodes.
 
std::string eventMessage
 Optional event message filter for OnEvent nodes If set, only events with matching message field trigger this node.
 
uint32_t onEventRootIndex = ~0u
 Index of this node in its graph's event roots array (m_eventRootIds) Only valid if this is an OnEvent node.
 

Detailed Description

Definition at line 197 of file BTNodeGraphManager.h.

Constructor & Destructor Documentation

◆ GraphNode() [1/2]

Olympe::GraphNode::GraphNode ( )
default

◆ GraphNode() [2/2]

Olympe::GraphNode::GraphNode ( int  nodeId,
NodeType  nodeType,
const std::string &  nodeName = "" 
)
inline

Definition at line 251 of file BTNodeGraphManager.h.

Member Data Documentation

◆ actionType

std::string Olympe::GraphNode::actionType

◆ childIds

std::vector<int> Olympe::GraphNode::childIds

◆ conditionType

std::string Olympe::GraphNode::conditionType

Definition at line 209 of file BTNodeGraphManager.h.

Referenced by Olympe::NodeGraphPanel::RenderGraph().

◆ decoratorChildId

int Olympe::GraphNode::decoratorChildId = -1

◆ decoratorType

std::string Olympe::GraphNode::decoratorType

Definition at line 212 of file BTNodeGraphManager.h.

Referenced by Olympe::NodeGraphPanel::RenderGraph().

◆ eventMessage

std::string Olympe::GraphNode::eventMessage

Optional event message filter for OnEvent nodes If set, only events with matching message field trigger this node.

Definition at line 242 of file BTNodeGraphManager.h.

◆ eventType

std::string Olympe::GraphNode::eventType

Event type that triggers this OnEvent node Only used for BT_OnEvent nodes.

Value is event type ID string (e.g., "Olympe_EventType_AI_Explosion")

Definition at line 236 of file BTNodeGraphManager.h.

◆ id

int Olympe::GraphNode::id = 0

◆ name

std::string Olympe::GraphNode::name

◆ onEventRootIndex

uint32_t Olympe::GraphNode::onEventRootIndex = ~0u

Index of this node in its graph's event roots array (m_eventRootIds) Only valid if this is an OnEvent node.

Used for fast lookup.

Definition at line 248 of file BTNodeGraphManager.h.

◆ parameters

std::map<std::string, std::string> Olympe::GraphNode::parameters

Definition at line 219 of file BTNodeGraphManager.h.

Referenced by Olympe::NodeGraphPanel::RenderContextMenu().

◆ posX

float Olympe::GraphNode::posX = 0.0f

◆ posY

float Olympe::GraphNode::posY = 0.0f

Definition at line 203 of file BTNodeGraphManager.h.

◆ subgraphUUID

std::string Olympe::GraphNode::subgraphUUID

Definition at line 216 of file BTNodeGraphManager.h.

◆ type

NodeType Olympe::GraphNode::type = NodeType::BT_Action

Definition at line 200 of file BTNodeGraphManager.h.

Referenced by Olympe::NodeGraph::LinkNodes().


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