SushiEngine::Simulation::IWorldEditor
has_component
virtual bool has_component(EntityId id, ComponentId component) const noexcept=0Parameters
| Name | Type | Description |
|---|---|---|
id | EntityId | The entity; one that does not exist answers false. |
component | ComponentId | The component's id, |
Returns
bool
True when the entity carries the component as an archetype column.
Description
Whether id carries the component component names.
template <typename T>
bool has_component(EntityId id) const noexceptParameters
| Name | Type |
|---|---|
id | EntityId |
Returns
bool
Description
Whether id carries component T.
Template parameters
TA component type.

