An object containing components. More...
#include <ecsm.hpp>
Public Types | |
using | SystemComponent = std::pair<System*, ID<Component>> |
using | Components = std::map<std::type_index, SystemComponent> |
Public Member Functions | |
bool | destroy () |
Destroys all entity components. | |
const Components & | getComponents () const noexcept |
Returns entity components map. | |
Friends | |
class | Manager |
An object containing components.
The entity is a general-purpose object. It doesn't have any inherent behavior or data by itself. Instead, it serves as a container for components.
bool destroy | ( | ) |
Destroys all entity components.
|
inlinenoexcept |
Returns entity components map.
Use Manager to add or remove components.