Contents

SushiEngine::Simulation::IWorldEditor

set_has_component

virtual bool set_has_component(EntityId id, ComponentId component, bool present)=0

Parameters

NameTypeDescription
idEntityId

The entity; one that does not exist refuses.

componentComponentId

A component the host can attach; any other refuses.

presentbool

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.