TazGraph Project v0.1.0
Loading...
Searching...
No Matches
AssetManager.h
1#pragma once
2
3#include <string>
4#include "TazGraphEngine.h"
5
6
7struct PairHash {
8 template <class T1, class T2>
9 std::size_t operator()(const std::pair<T1, T2>& p) const {
10 auto hash1 = std::hash<T1>{}(p.first);
11 auto hash2 = std::hash<T2>{}(p.second);
12 return hash1 ^ (hash2 << 1);
13 }
14};
15namespace AssetManager //this class created when we added projectiles, based on this class other components changed
16{ //it just replaces the paths of textures with names
17
18 //graphobjects
19 void CreateWorldMap(Entity& worldMap);
20 void CreateGroup(Entity& groupNode, glm::vec3 centerGroup, float groupNodeSize, Grid::Level m_level);
21
22 void CreateGroupLink(Entity& groupLink, Grid::Level m_level);
23
24 void createGroupLayout(Manager* manager, Grid::Level m_level);
25
26 void ungroupLayout(Manager* manager, Grid::Level m_level);
27 void AddDefaultNode(Entity& node, glm::vec3 mPosition);
28 void AddTreeNode(Entity& node, glm::vec3 mPosition);
29 void AddDefaultLink(Entity& link);
30 void AddTreeLink(Entity& link);
31 void AddPathLink(Entity& link);
32 void AddSimulationNode(Entity& node, glm::vec3 mPosition);
33 void AddSimulationLink(Entity& link);
34};
Definition GECS.h:224
Definition GECSManager.h:20
Definition AssetManager.h:7