Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Toggle main menu visibility
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
8
namespace
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
)
const
;
17
void
RemoveEntity(
ECS::Entity
);
18
size_t
GetSelectedEntityCount()
const
;
19
ECS::Entity
GetSingleSelectedEntity()
const
;
20
21
void
ClearFiles();
22
void
SetSelectedFile(
const
std::filesystem::path& path);
23
void
AddFile(
const
std::filesystem::path& path);
24
bool
IsFileSelected(
const
std::filesystem::path& path)
const
;
25
void
RemoveFile(
const
std::filesystem::path& path);
26
size_t
GetSelectedFileCount()
const
;
27
const
std::filesystem::path& GetSingleSelectedFile()
const
;
28
public
:
29
std::set<ECS::Entity> selectedEntities;
30
std::set<std::filesystem::path> selectedFiles;
31
};
32
}
33
}
Grindstone::ECS::Entity
Definition
Entity.hpp:15
Grindstone::Editor::Selection
Definition
Selection.hpp:10
sources
code
Editor
Selection.hpp
Generated by
1.17.0