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

Root component structure for the ACE framework, serves as the base component. More...

#include <transform_component.h>

Inheritance diagram for unravel::root_component:
unravel::component_crtp< root_component > unravel::basic_component

Static Public Member Functions

static void on_create_component (entt::registry &r, entt::entity e)
 Called when the component is created.
 
static void on_update_component (entt::registry &r, entt::entity e)
 Called when the component is updated.
 
static void on_destroy_component (entt::registry &r, entt::entity e)
 Called when the component is destroyed.
 

Public Attributes

uint64_t order {}
 
- Public Attributes inherited from unravel::basic_component
bool eto {}
 Disable empty type optimizations.
 

Static Public Attributes

static constexpr bool in_place_delete = false
 
- Static Public Attributes inherited from unravel::component_crtp< root_component >
static constexpr bool in_place_delete
 Indicates if the component can be deleted in place.
 

Additional Inherited Members

- Public Types inherited from unravel::component_crtp< root_component >
using base
 
- Public Member Functions inherited from unravel::basic_component
void touch ()
 Marks the component as 'touched'.
 

Detailed Description

Root component structure for the ACE framework, serves as the base component.

Definition at line 17 of file transform_component.h.

Member Function Documentation

◆ on_create_component()

void unravel::root_component::on_create_component ( entt::registry & r,
entt::entity e )
static

Called when the component is created.

Parameters
rThe registry containing the component.
eThe entity associated with the component.

Definition at line 53 of file transform_component.cpp.

◆ on_destroy_component()

void unravel::root_component::on_destroy_component ( entt::registry & r,
entt::entity e )
static

Called when the component is destroyed.

Parameters
rThe registry containing the component.
eThe entity associated with the component.

Definition at line 63 of file transform_component.cpp.

◆ on_update_component()

void unravel::root_component::on_update_component ( entt::registry & r,
entt::entity e )
static

Called when the component is updated.

Parameters
rThe registry containing the component.
eThe entity associated with the component.

Definition at line 58 of file transform_component.cpp.

Member Data Documentation

◆ in_place_delete

bool unravel::root_component::in_place_delete = false
staticconstexpr

Definition at line 19 of file transform_component.h.

◆ order

uint64_t unravel::root_component::order {}

Definition at line 44 of file transform_component.h.


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