Skip to main content

Function: addAgeScaleComponent()

addAgeScaleComponent(world, entity, options?): AgeScaleEcsComponent

Defined in: common/components/age-scale-component.ts:32

Attaches a AgeScaleEcsComponent to entity.

Parameters​

world​

EcsWorld

The ECS world entity belongs to.

entity​

number

The entity to attach the component to.

options?​

Partial<AgeScaleEcsComponent> = {}

Options for configuring the age-based scaling.

Returns​

AgeScaleEcsComponent

The attached component, for further tuning or runtime changes.