Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::entity_panel Class Reference

#include <entity_panel.h>

Inheritance diagram for unravel::entity_panel:
unravel::hierarchy_panel unravel::inspector_panel unravel::scene_panel

Public Member Functions

 entity_panel (imgui_panels *parent)
 
 ~entity_panel ()=default
 
void on_frame_ui_render ()
 
void duplicate_entities (const std::vector< entt::handle > &entities)
 
void focus_entities (entt::handle camera, const std::vector< entt::handle > &entities)
 
void delete_entities (const std::vector< entt::handle > &entities)
 

Static Public Member Functions

static auto get_entity_name (entt::handle entity) -> std::string
 Gets the entity name from tag component.
 
static auto get_entity_icon (entt::handle entity) -> std::string
 
static auto get_entity_display_color (entt::handle entity) -> ImVec4
 

Protected Attributes

imgui_panelsparent_ {}
 

Detailed Description

Definition at line 15 of file entity_panel.h.

Constructor & Destructor Documentation

◆ entity_panel()

unravel::entity_panel::entity_panel ( imgui_panels * parent)

Definition at line 19 of file entity_panel.cpp.

◆ ~entity_panel()

unravel::entity_panel::~entity_panel ( )
default

Member Function Documentation

◆ delete_entities()

void unravel::entity_panel::delete_entities ( const std::vector< entt::handle > & entities)

Definition at line 69 of file entity_panel.cpp.

◆ duplicate_entities()

void unravel::entity_panel::duplicate_entities ( const std::vector< entt::handle > & entities)

Definition at line 26 of file entity_panel.cpp.

◆ focus_entities()

void unravel::entity_panel::focus_entities ( entt::handle camera,
const std::vector< entt::handle > & entities )

Definition at line 58 of file entity_panel.cpp.

◆ get_entity_display_color()

auto unravel::entity_panel::get_entity_display_color ( entt::handle entity) -> ImVec4
static

Definition at line 131 of file entity_panel.cpp.

◆ get_entity_icon()

auto unravel::entity_panel::get_entity_icon ( entt::handle entity) -> std::string
static

Definition at line 117 of file entity_panel.cpp.

◆ get_entity_name()

auto unravel::entity_panel::get_entity_name ( entt::handle entity) -> std::string
static

Gets the entity name from tag component.

Parameters
entityThe entity to get the name for
Returns
The entity name, or a fallback string if no name is set

Definition at line 100 of file entity_panel.cpp.

◆ on_frame_ui_render()

void unravel::entity_panel::on_frame_ui_render ( )

Definition at line 22 of file entity_panel.cpp.

Member Data Documentation

◆ parent_

imgui_panels* unravel::entity_panel::parent_ {}
protected

Definition at line 38 of file entity_panel.h.


The documentation for this class was generated from the following files: