Tramway SDK
graph.h
Go to the documentation of this file.
1// Tramway Drifting and Dungeon Exploration Simulator SDK Runtime
2
3#ifndef TRAM_SDK_FRAMEWORK_GRAPH_H
4#define TRAM_SDK_FRAMEWORK_GRAPH_H
5
6#include <framework/math.h>
7#include <vector>
8
9namespace tram {
10
11struct Edge {
12 uint32_t from;
13 uint32_t to;
14};
15
16struct Node {
18 std::vector<uint32_t> edges;
19};
20
21class Graph {
22protected:
23 std::vector<Node> nodes;
24 std::vector<Edge> edges;
25};
26
27}
28
29#endif // TRAM_SDK_FRAMEWORK_GRAPH_H
Definition: graph.h:21
std::vector< Edge > edges
Definition: graph.h:24
std::vector< Node > nodes
Definition: graph.h:23
Serialization, i.e.
glm::vec3 vec3
Definition: math.h:11
Definition: graph.h:11
uint32_t to
Definition: graph.h:13
uint32_t from
Definition: graph.h:12
Definition: graph.h:16
vec3 position
Definition: graph.h:17
std::vector< uint32_t > edges
Definition: graph.h:18