Finality Engine
Loading...
Searching...
No Matches
EditorSession.h
Go to the documentation of this file.
1
6#pragma once
7#include "ProjectScripts.h"
8#include "ExternalTools.h"
9#include "ImportProgress.h"
10#include "HistoryCheckpoint.h"
11#include "EditorPreferences.h"
12#include "AssetChangeMonitor.h"
13
14namespace FINALITY
15{
17 enum class EditorState { Edit, Play, Paused };
18
21 {
22 public:
28 entt::entity SelectedEntity = entt::null;
29 uint64_t SelectedAsset = 0;
30 std::string ScenePath;
31 std::vector<std::string> History;
32 size_t HistoryIndex = 0;
36
37 void SelectEntity(entt::entity entity) { SelectedEntity = entity; SelectedAsset = 0; }
38 void SelectAsset(uint64_t asset) { SelectedAsset = asset; SelectedEntity = entt::null; }
40 {
41 Imports.Clear();
43 Scripts.Close();
44 SelectEntity(entt::null);
45 ScenePath.clear();
46 History.clear();
47 HistoryIndex = 0;
49 }
50 };
51}
EditorPreferences Preferences
void SelectAsset(uint64_t asset)
AssetChangeMonitor AssetChanges
entt::entity SelectedEntity
std::vector< std::string > History
void SelectEntity(entt::entity entity)
HistoryCheckpoint Checkpoint
Owns project identity, paths and saved configuration.
Definition Project.h:30