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

#include <entity_actions.h>

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

Public Member Functions

 entity_set_materials_action_t (entt::handle ent, const std::vector< asset_handle< material > > &old_materials, const asset_handle< material > &new_material)
 
void do_action () override
 
void undo_action () override
 
auto is_mergeable (const editing_action_t &previous) const -> bool override
 
void merge_with (const editing_action_t &previous) override
 
auto is_valid () const -> bool override
 
void draw_in_inspector (rtti::context &ctx) override
 
- Public Member Functions inherited from crtp_meta_type< entity_set_materials_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::vector< asset_handle< material > > old_materials {}
 
std::vector< asset_handle< material > > new_materials {}
 

Additional Inherited Members

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

Detailed Description

Definition at line 98 of file entity_actions.h.

Constructor & Destructor Documentation

◆ entity_set_materials_action_t()

unravel::entity_set_materials_action_t::entity_set_materials_action_t ( entt::handle ent,
const std::vector< asset_handle< material > > & old_materials,
const asset_handle< material > & new_material )

Definition at line 255 of file entity_actions.cpp.

Member Function Documentation

◆ do_action()

void unravel::entity_set_materials_action_t::do_action ( )
override

Definition at line 262 of file entity_actions.cpp.

◆ draw_in_inspector()

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

Definition at line 321 of file entity_actions.cpp.

◆ is_mergeable()

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

Definition at line 304 of file entity_actions.cpp.

◆ is_valid()

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

Definition at line 316 of file entity_actions.cpp.

◆ merge_with()

void unravel::entity_set_materials_action_t::merge_with ( const editing_action_t & previous)
override

Definition at line 310 of file entity_actions.cpp.

◆ undo_action()

void unravel::entity_set_materials_action_t::undo_action ( )
override

Definition at line 283 of file entity_actions.cpp.

Member Data Documentation

◆ entity

entt::handle unravel::entity_set_materials_action_t::entity {}

Definition at line 100 of file entity_actions.h.

◆ new_materials

std::vector<asset_handle<material> > unravel::entity_set_materials_action_t::new_materials {}

Definition at line 102 of file entity_actions.h.

◆ old_materials

std::vector<asset_handle<material> > unravel::entity_set_materials_action_t::old_materials {}

Definition at line 101 of file entity_actions.h.


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