![]() |
ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class represent the abstract class to store components of the ECS. More...
#include <include/reactphysics3d/components/Components.h>
Public Member Functions | |
| Components (MemoryAllocator &allocator, size_t componentDataSize, size_t alignmentMarginSize) | |
| Constructor. | |
| virtual | ~Components () |
| Destructor. | |
| void | init () |
| Initialize the components: | |
| void | removeComponent (Entity entity) |
| Remove a component. | |
| bool | getIsEntityDisabled (Entity entity) const |
| Return true if an entity is disabled. | |
| void | setIsEntityDisabled (Entity entity, bool isDisabled) |
| Notify if a given entity is disabled. | |
| bool | hasComponent (Entity entity) const |
| Return true if there is a component for a given entity. | |
| bool | hasComponentGetIndex (Entity entity, uint32 &entityIndex) const |
| Return true if there is a component for a given entiy and if so set the entity index. | |
| uint32 | getNbComponents () const |
| Return the number of components. | |
| uint32 | getNbEnabledComponents () const |
| Return the number of enabled components. | |
| uint32 | getEntityIndex (Entity entity) const |
| Return the index in the arrays for a given entity. | |
This class represent the abstract class to store components of the ECS.