Skip to main content

Function: addFlipComponent()

addFlipComponent(world, entity, options?): FlipEcsComponent

Defined in: common/components/flip-component.ts:26

Attaches a FlipEcsComponent to entity.

Parameters​

world​

EcsWorld

The ECS world entity belongs to.

entity​

number

The entity to attach the component to.

options?​

Partial<FlipEcsComponent> = {}

Options for configuring the flip.

Returns​

FlipEcsComponent

The attached component, for further tuning or runtime changes.