|
CeresEngine 0.2.0
A game development framework
|
A type that describes and provides type-erased operations on a component. More...
#include <CeresEngine/Entity/Component.hpp>
Static Public Member Functions | |
| template<typename C > | |
| static const TComponentType< C > & | get () noexcept |
The type instance for a component of the C. | |
Public Attributes | |
| const ComponentID | componentID |
| The component type ID. | |
| const ComponentMask | componentMask |
Protected Member Functions | |
| ComponentType (const ComponentID componentID) | |
Static Protected Attributes | |
| static ComponentID | nextComponentID |
| The next component ID to be statically allocated by the compiler. | |
Friends | |
| bool | operator== (const ComponentType &lhs, const ComponentType &rhs) noexcept |
Compares two ComponentType instances for equality. | |
| bool | operator!= (const ComponentType &lhs, const ComponentType &rhs) noexcept |
Compares two ComponentType instances for inequality. | |
A type that describes and provides type-erased operations on a component.
|
inlineexplicitprotected |
|
delete |
|
delete |
|
pure virtual |
Implemented in CeresEngine::TComponentType< C >.
|
pure virtual |
Implemented in CeresEngine::TComponentType< C >.
|
inlinestaticnoexcept |
The type instance for a component of the C.
This instance is unique for any given component type C and is safe to perform pointer comparisons on the type.
| C | The type of component to return the type descriptor for. |
Returns the component accessor meta class.
Implemented in CeresEngine::TComponentType< C >.
Returns the component accessor meta type.
Implemented in CeresEngine::TComponentType< C >.
|
pure virtualnoexcept |
Implemented in CeresEngine::TComponentType< C >.
|
pure virtualnoexcept |
Implemented in CeresEngine::TComponentType< C >.
Returns the meta class of the component.
Implemented in CeresEngine::TComponentType< C >.
Returns the meta type of the component.
Implemented in CeresEngine::TComponentType< C >.
|
delete |
|
delete |
|
pure virtualnoexcept |
Implemented in CeresEngine::TComponentType< C >.
|
pure virtualnoexcept |
Implemented in CeresEngine::TComponentType< C >.
|
friend |
Compares two ComponentType instances for inequality.
If true, lhs and `rhs instances represent different component types.
|
friend |
Compares two ComponentType instances for equality.
If true, lhs and `rhs instances represent the same component type.
| const ComponentID CeresEngine::ComponentType::componentID |
The component type ID.
Used as index when accessing storage for the component.
| const ComponentMask CeresEngine::ComponentType::componentMask |
|
staticprotected |
The next component ID to be statically allocated by the compiler.