SushiEngine::Simulation::IWorldEditor
set_has_component
virtual bool set_has_component(EntityId id, ComponentId component, bool present)=0Parameters
| Name | Type | Description |
|---|---|---|
id | EntityId | The entity; one that does not exist refuses. |
component | ComponentId | A component the host can attach; any other refuses. |
present | bool | Whether the entity carries the component after this call. |
Returns
bool
True when the entity's presence equals present on return.
Description
Attaches or detaches the component component names on id.

