5#include "../ResourceSelector.hpp"
24 void SetScene(
const std::string& path, std::string* scene);
54 void ShowEntity(
Entity* entity);
55 Entity* draggedEntity =
nullptr;
60 std::string* scene =
nullptr;
Entity containing various components.
Definition: Entity.hpp:16
Used to edit an entity.
Definition: EntityEditor.hpp:33
Used to select a resource from the resource list.
Definition: ResourceSelector.hpp:7
Used to edit a scene.
Definition: SceneEditor.hpp:11
bool IsVisible() const
Get whether the window is visible.
Definition: SceneEditor.cpp:82
void Show()
Show the editor.
Definition: SceneEditor.cpp:18
bool entityPressed
Did we press on an entity this frame.
Definition: SceneEditor.hpp:48
void SetScene(const std::string &path, std::string *scene)
Set the scene to edit.
Definition: SceneEditor.cpp:67
Json::Value GetSaveFileJson(std::string *filename) const
Gets a Json file representing the save file.
Definition: SceneEditor.cpp:95
void Save() const
Save currently open scene to file.
Definition: SceneEditor.cpp:90
EntityEditor entityEditor
The Entity Editor.
Definition: SceneEditor.hpp:51
SceneEditor()
Constructor.
Definition: SceneEditor.cpp:14
void SetVisible(bool visible)
Set whether the window should be visible.
Definition: SceneEditor.cpp:86
Definition: AssetEditor.hpp:9