PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
Link.hpp
1#pragma once
2
3#include <mutex>
4#include <string>
5#include <unordered_map>
6
7namespace PixelBullet
8{
9 class Location;
10
13 class Link
14 {
15 public:
16 Link();
17
26 std::string ResolveAssetPath(const std::string& assetPath) const;
27
32 void RegisterAssetLink(const std::string& alias, const std::string& path);
33
35 void LoadAssetLinksFromFile(const std::string& filename);
36
37 private:
39 mutable std::mutex m_Mutex;
40
42 std::unordered_map<std::string, std::string> m_LinkMapping;
43 };
44} // namespace PixelBullet