Unravel Engine C++ Reference
Loading...
Searching...
No Matches
entity_panel.h
Go to the documentation of this file.
1#pragma once
2
3#include <base/basetypes.hpp>
4#include <context/context.hpp>
5
6#include <engine/ecs/ecs.h>
7
8#include "panel_base.h"
10#include <editor/shortcuts.h>
11
12namespace unravel
13{
14class imgui_panels;
15
17{
18public:
19 entity_panel(imgui_panels* parent, const char* name);
20
21 virtual ~entity_panel() = default;
22
23 void duplicate_entities(const std::vector<entt::handle>& entities);
24
25 void focus_entities(entt::handle camera, const std::vector<entt::handle>& entities);
26
27 void delete_entities(const std::vector<entt::handle>& entities);
28
29 static auto get_entity_name(entt::handle entity) -> std::string;
30
31 static auto get_entity_icon(entt::handle entity) -> std::string;
32 static auto get_entity_display_color(entt::handle entity) -> ImVec4;
33
34protected:
35
37};
38} // namespace unravel
Class representing a camera. Contains functionality for manipulating and updating a camera....
Definition camera.h:62
static auto get_entity_icon(entt::handle entity) -> std::string
void focus_entities(entt::handle camera, const std::vector< entt::handle > &entities)
void duplicate_entities(const std::vector< entt::handle > &entities)
static auto get_entity_name(entt::handle entity) -> std::string
Gets the entity name from tag component.
static auto get_entity_display_color(entt::handle entity) -> ImVec4
virtual ~entity_panel()=default
imgui_panels * parent_
entity_panel(imgui_panels *parent, const char *name)
void delete_entities(const std::vector< entt::handle > &entities)
std::string name
Definition hub.cpp:33
entt::handle entity