Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
AssetRoot.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <filesystem>
4
5
#include <
ECS/Entity.hpp
>
6
#include <
ECS/SingletonComponent.hpp
>
7
8
namespace
shkyera
{
9
10
// Registry of all path-based assets representing the root of the project
11
struct
AssetRoot
:
public
SingletonComponent
<AssetRoot> {
12
std::filesystem::path
path
;
13
};
14
15
}
// namespace shkyera
Entity.hpp
SingletonComponent.hpp
shkyera
Definition
Asset.hpp:6
shkyera::AssetRoot
Definition
AssetRoot.hpp:11
shkyera::AssetRoot::path
std::filesystem::path path
Definition
AssetRoot.hpp:12
shkyera::SingletonComponent
Marker to denote Singleton Component.
Definition
SingletonComponent.hpp:9
src
Components
AssetComponents
AssetRoot.hpp
Generated by
1.9.8
Franciszek Szewczyk © 2023