Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::entity_remove_component_action_t Struct Reference

#include <entity_actions.h>

Inheritance diagram for unravel::entity_remove_component_action_t:
crtp_meta_type< entity_remove_component_action_t, editing_action_t >

Public Member Functions

 entity_remove_component_action_t (entt::handle ent, const entt::meta_type &ctype)
 
void do_action () override
 
void undo_action () override
 
auto is_mergeable (const editing_action_t &previous) const -> bool override
 
auto is_valid () const -> bool override
 
void draw_in_inspector (rtti::context &ctx) override
 
- Public Member Functions inherited from crtp_meta_type< entity_remove_component_action_t, editing_action_t >
virtual auto get_meta_type () const -> entt::meta_type
 
auto is () const -> bool
 
auto is (const entt::meta_type &type) const -> bool
 
virtual auto as_derived () -> entt::meta_any
 

Public Attributes

entt::handle entity {}
 
entt::meta_type component_type {}
 
bool do_was_successful {false}
 
std::stringstream stream {}
 

Additional Inherited Members

- Static Public Member Functions inherited from crtp_meta_type< entity_remove_component_action_t, editing_action_t >
static auto get_static_meta_type () -> entt::meta_type
 

Detailed Description

Definition at line 32 of file entity_actions.h.

Constructor & Destructor Documentation

◆ entity_remove_component_action_t()

unravel::entity_remove_component_action_t::entity_remove_component_action_t ( entt::handle ent,
const entt::meta_type & ctype )

Definition at line 56 of file entity_actions.cpp.

Member Function Documentation

◆ do_action()

void unravel::entity_remove_component_action_t::do_action ( )
override

Definition at line 62 of file entity_actions.cpp.

◆ draw_in_inspector()

void unravel::entity_remove_component_action_t::draw_in_inspector ( rtti::context & ctx)
override

Definition at line 93 of file entity_actions.cpp.

◆ is_mergeable()

auto unravel::entity_remove_component_action_t::is_mergeable ( const editing_action_t & previous) const -> bool
override

Definition at line 83 of file entity_actions.cpp.

◆ is_valid()

auto unravel::entity_remove_component_action_t::is_valid ( ) const -> bool
override

Definition at line 88 of file entity_actions.cpp.

◆ undo_action()

void unravel::entity_remove_component_action_t::undo_action ( )
override

Definition at line 72 of file entity_actions.cpp.

Member Data Documentation

◆ component_type

entt::meta_type unravel::entity_remove_component_action_t::component_type {}

Definition at line 35 of file entity_actions.h.

◆ do_was_successful

bool unravel::entity_remove_component_action_t::do_was_successful {false}

Definition at line 37 of file entity_actions.h.

◆ entity

entt::handle unravel::entity_remove_component_action_t::entity {}

Definition at line 34 of file entity_actions.h.

◆ stream

std::stringstream unravel::entity_remove_component_action_t::stream {}

Definition at line 38 of file entity_actions.h.


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