addComponent
ECSInterface::addComponent
Adds a Component to an Entity.
Declaration
template <typename T>
void addComponent(Entity entity, T component);
Parameters
Name |
Type |
Description |
---|---|---|
entity |
The Entity to add the Component to. |
|
component |
T (Component) |
The component to add to the Entity. |
Returns
None.