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
10namespace 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}
Definition MetaFile.hpp:11
Definition FileDirectory.hpp:19
Definition FileDirectory.hpp:13