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

#include <transform_actions.h>

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

Public Member Functions

 transform_move_action_t (entt::handle ent, const math::vec3 &old_pos, const math::vec3 &new_pos)
 
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< transform_move_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
 
math::vec3 old_position
 
math::vec3 new_position
 

Additional Inherited Members

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

Detailed Description

Definition at line 14 of file transform_actions.h.

Constructor & Destructor Documentation

◆ transform_move_action_t()

unravel::transform_move_action_t::transform_move_action_t ( entt::handle ent,
const math::vec3 & old_pos,
const math::vec3 & new_pos )

Definition at line 9 of file transform_actions.cpp.

Member Function Documentation

◆ do_action()

void unravel::transform_move_action_t::do_action ( )
override

Definition at line 15 of file transform_actions.cpp.

◆ draw_in_inspector()

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

Definition at line 57 of file transform_actions.cpp.

◆ is_mergeable()

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

Definition at line 39 of file transform_actions.cpp.

◆ is_valid()

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

Definition at line 51 of file transform_actions.cpp.

◆ merge_with()

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

Definition at line 45 of file transform_actions.cpp.

◆ undo_action()

void unravel::transform_move_action_t::undo_action ( )
override

Definition at line 27 of file transform_actions.cpp.

Member Data Documentation

◆ entity

entt::handle unravel::transform_move_action_t::entity

Definition at line 16 of file transform_actions.h.

◆ new_position

math::vec3 unravel::transform_move_action_t::new_position

Definition at line 18 of file transform_actions.h.

◆ old_position

math::vec3 unravel::transform_move_action_t::old_position

Definition at line 17 of file transform_actions.h.


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