Component that is owned by an entity.
More...
#include <basic_component.h>
|
| bool | eto {} |
| | Disable empty type optimizations.
|
| |
Component that is owned by an entity.
Definition at line 31 of file basic_component.h.
◆ get_owner() [1/2]
| auto unravel::owned_component::get_owner |
( |
| ) |
const -> entt::const_handle
|
|
inlinenodiscardnoexcept |
Gets the owner of the component.
- Returns
- A constant handle to the owner entity.
Definition at line 64 of file basic_component.h.
◆ get_owner() [2/2]
| auto unravel::owned_component::get_owner |
( |
| ) |
-> entt::handle
|
|
inlinenodiscardnoexcept |
Gets the owner of the component.
- Returns
- A handle to the owner entity.
Definition at line 73 of file basic_component.h.
◆ on_create_component()
template<typename T >
| static void unravel::owned_component::on_create_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
inlinestatic |
◆ on_destroy_component()
template<typename T >
| static void unravel::owned_component::on_destroy_component |
( |
entt::registry & | r, |
|
|
entt::entity | e ) |
|
inlinestatic |
◆ operator=()
◆ set_owner()
| void unravel::owned_component::set_owner |
( |
entt::handle | owner | ) |
|
|
inline |
Sets the owner of the component.
- Parameters
-
| owner | The entity handle representing the owner. |
Definition at line 55 of file basic_component.h.
The documentation for this class was generated from the following file: