Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
FileDirectory.hpp
1
#pragma once
2
3
#include <filesystem>
4
#include <string>
5
#include <vector>
6
7
#include <Common/ResourcePipeline/MetaFile.hpp>
8
9
10
namespace
Grindstone::Editor {
11
class
MetaFile;
12
13
struct
File
{
14
std::filesystem::directory_entry directoryEntry;
15
MetaFile
metaFile;
16
File
(std::filesystem::directory_entry entry);
17
};
18
19
struct
Directory
{
20
Directory
* parentDirectory =
nullptr
;
21
std::string name;
22
std::filesystem::directory_entry path;
23
std::vector<Directory*> subdirectories;
24
std::vector<File*> files;
25
26
Directory
() =
default
;
27
Directory
(std::filesystem::directory_entry path,
Directory
* parentDirectory);
28
};
29
}
Grindstone::Editor::MetaFile
Definition
MetaFile.hpp:11
Grindstone::Editor::Directory
Definition
FileDirectory.hpp:19
Grindstone::Editor::File
Definition
FileDirectory.hpp:13
sources
code
Editor
FileDirectory.hpp
Generated by
1.12.0