Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Selection.hpp
1#pragma once
2
3#include <vector>
4#include <set>
5#include <filesystem>
6#include "EngineCore/ECS/Entity.hpp"
7
8namespace Grindstone {
9 namespace Editor {
10 class Selection {
11 public:
12 void Clear();
13 void ClearEntities();
14 void SetSelectedEntity(ECS::Entity);
15 void AddEntity(ECS::Entity);
16 bool IsEntitySelected(ECS::Entity);
17 void RemoveEntity(ECS::Entity);
18 size_t GetSelectedEntityCount();
19 ECS::Entity GetSingleSelectedEntity();
20
21 void ClearFiles();
22 void SetSelectedFile(const std::filesystem::directory_entry& path);
23 void AddFile(const std::filesystem::directory_entry& path);
24 bool IsFileSelected(const std::filesystem::directory_entry& path);
25 void RemoveFile(const std::filesystem::directory_entry& path);
26 size_t GetSelectedFileCount();
27 std::filesystem::directory_entry GetSingleSelectedFile();
28 public:
29 std::set<ECS::Entity> selectedEntities;
30 std::set<std::filesystem::directory_entry> selectedFiles;
31 };
32 }
33}
Definition Entity.hpp:14
Definition Selection.hpp:10