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

#include <entity_actions.h>

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

Public Member Functions

 entity_remove_script_component_action_t (entt::handle ent, const std::string &type_name)
 
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_script_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 {}
 
std::string script_type_name {}
 
bool do_was_successful {false}
 
std::stringstream removed_script_object_data {}
 

Additional Inherited Members

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

Detailed Description

Definition at line 149 of file entity_actions.h.

Constructor & Destructor Documentation

◆ entity_remove_script_component_action_t()

unravel::entity_remove_script_component_action_t::entity_remove_script_component_action_t ( entt::handle ent,
const std::string & type_name )

Definition at line 475 of file entity_actions.cpp.

Member Function Documentation

◆ do_action()

void unravel::entity_remove_script_component_action_t::do_action ( )
override

Definition at line 481 of file entity_actions.cpp.

◆ draw_in_inspector()

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

Definition at line 587 of file entity_actions.cpp.

◆ is_mergeable()

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

Definition at line 577 of file entity_actions.cpp.

◆ is_valid()

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

Definition at line 582 of file entity_actions.cpp.

◆ undo_action()

void unravel::entity_remove_script_component_action_t::undo_action ( )
override

Definition at line 524 of file entity_actions.cpp.

Member Data Documentation

◆ do_was_successful

bool unravel::entity_remove_script_component_action_t::do_was_successful {false}

Definition at line 154 of file entity_actions.h.

◆ entity

entt::handle unravel::entity_remove_script_component_action_t::entity {}

Definition at line 151 of file entity_actions.h.

◆ removed_script_object_data

std::stringstream unravel::entity_remove_script_component_action_t::removed_script_object_data {}

Definition at line 156 of file entity_actions.h.

◆ script_type_name

std::string unravel::entity_remove_script_component_action_t::script_type_name {}

Definition at line 152 of file entity_actions.h.


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