Base component structure. More...
#include <ecsm.hpp>
Public Member Functions | |
ID< Entity > | getEntity () const noexcept |
Returns component entity instance. | |
Protected Attributes | |
ID< Entity > | entity = {} |
Friends | |
class | Manager |
Base component structure.
Components are containers for specific data or behavior. Rather than attaching behavior directly to entities, you attach components to entities to give them certain properties or functionalities. For example, in a game, you might have components for position, velocity, rendering, etc.