Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
GraphEdge< T > Struct Template Reference

Structure representing an edge in the navigation graph. More...

#include <graph.h>

Public Attributes

std::reference_wrapper< T > target
 
std::reference_wrapper< T > source
 
float cost
 

Detailed Description

template<typename T>
struct GraphEdge< T >

Structure representing an edge in the navigation graph.

Parameters
TThe type of the nodes connected by the edge.
targetReference to the target node of the edge.
sourceReference to the source node of the edge.
costThe cost associated with traversing the edge.

Member Data Documentation

◆ cost

template<typename T >
float GraphEdge< T >::cost

◆ source

template<typename T >
std::reference_wrapper<T> GraphEdge< T >::source

◆ target

template<typename T >
std::reference_wrapper<T> GraphEdge< T >::target

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