Initial editor commit

- Add Entity Tree View used to select entities to be modified
- Add Entity View used to Add/Remove/Edit Components of the Entity
- Add Asset View which lists all available assets
This commit is contained in:
Thraix
2023-07-18 11:58:55 +02:00
parent 65a86bd5a2
commit ca61bae014
22 changed files with 485 additions and 31 deletions
+13 -13
View File
@@ -3,6 +3,7 @@
#include "copium/asset/AssetRef.h"
#include "copium/ecs/Entity.h"
#include "copium/util/Uuid.h"
#include "copium/util/BoundingBox.h"
#include <string>
@@ -16,9 +17,6 @@ namespace Copium
glm::vec2 size;
};
struct RenderableC {};
struct UiRenderableC {};
struct ColorC
{
glm::vec3 color;
@@ -38,12 +36,6 @@ namespace Copium
float fontSize;
};
struct MouseFollowC
{};
struct FrameCountC
{};
struct CameraC
{
BoundingBox projection;
@@ -89,10 +81,6 @@ namespace Copium
glm::vec2 oldPosition{};
};
struct PickupC
{
};
struct DebugC
{
@@ -120,4 +108,16 @@ namespace Copium
{
std::vector<Entity> entities;
};
struct NameC
{
std::string name;
};
struct RenderableC {};
struct UiRenderableC {};
struct SerializableC {};
struct PickupC {};
struct MouseFollowC {};
struct FrameCountC {};
}