Tramway SDK
graph.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_FRAMEWORK_GRAPH_H
5#define TRAM_SDK_FRAMEWORK_GRAPH_H
6
7#include <framework/math.h>
8#include <vector>
9
10namespace tram {
11
12struct Edge {
13 uint32_t from;
14 uint32_t to;
15};
16
17struct Node {
19 std::vector<uint32_t> edges;
20};
21
22class Graph {
23protected:
24 std::vector<Node> nodes;
25 std::vector<Edge> edges;
26};
27
28
29
30
31
32
33}
34
35#endif // TRAM_SDK_FRAMEWORK_GRAPH_H
Definition: graph.h:22
std::vector< Edge > edges
Definition: graph.h:25
std::vector< Node > nodes
Definition: graph.h:24
Definition: api.h:9
glm::vec3 vec3
Definition: math.h:12
Definition: graph.h:12
uint32_t to
Definition: graph.h:14
uint32_t from
Definition: graph.h:13
Definition: graph.h:17
vec3 position
Definition: graph.h:18
std::vector< uint32_t > edges
Definition: graph.h:19