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