Contents

SushiEngine::Simulation::IWorldEditor

has_component

virtual bool has_component(EntityId id, ComponentId component) const noexcept=0

Parameters

NameTypeDescription
idEntityId

The entity; one that does not exist answers false.

componentComponentId

The component's id, component_id<T>().

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 noexcept

Parameters

NameType
idEntityId

Returns

bool

Description

Whether id carries component T.

Template parameters

T

A component type.