Skip to main content

Class: AgeScaleComponent

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

Component to track how an entity's scale changes with age over its lifetime

Implements

Constructors

Constructor

new AgeScaleComponent(originalScaleX, originalScaleY, finalLifetimeScaleX, finalLifetimeScaleY): AgeScaleComponent

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

Creates an instance of the AgeScaleComponent.

Parameters

originalScaleX

number

The original x scale of the entity.

originalScaleY

number

The original y scale of the entity.

finalLifetimeScaleX

number

The final x scale the entity will have at the end of its lifetime

finalLifetimeScaleY

number

The final y scale the entity will have at the end of its lifetime

Returns

AgeScaleComponent

Properties

finalLifetimeScaleX

finalLifetimeScaleX: number

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


finalLifetimeScaleY

finalLifetimeScaleY: number

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


name

name: symbol

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

The unique name of the component.

Implementation of

Component.name


originalScaleX

originalScaleX: number

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


originalScaleY

originalScaleY: number

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


symbol

readonly static symbol: typeof symbol

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