|
Nebula
|
#include <component.h>
Used for registering component types to the game world.
Public Types | |
| using | OnInitFunc = void (*)(Game::World*, Game::Entity, COMPONENT_TYPE*) |
Public Attributes | |
| bool | decay = false |
| Set to true if the component should end up in the decay buffer before being completely destroyed. | |
| OnInitFunc | OnInit = nullptr |
| initialization function to run for the component, or nullptr if not needed. | |
| using Game::ComponentRegisterInfo< COMPONENT_TYPE >::OnInitFunc = void (*)(Game::World*, Game::Entity, COMPONENT_TYPE*) |
| bool Game::ComponentRegisterInfo< COMPONENT_TYPE >::decay = false |
Set to true if the component should end up in the decay buffer before being completely destroyed.
| OnInitFunc Game::ComponentRegisterInfo< COMPONENT_TYPE >::OnInit = nullptr |
initialization function to run for the component, or nullptr if not needed.