Function: addAgeScaleComponent()
addAgeScaleComponent(
world,entity,options?):AgeScaleEcsComponent
Defined in: common/components/age-scale-component.ts:32
Attaches a AgeScaleEcsComponent to entity.
Parameters
world
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
The attached component, for further tuning or runtime changes.