Skip to main content

Class: SpeedComponent

Defined in: common/components/speed-component.ts:6

Component to track an entities speed.

Extends

Constructors

Constructor

new SpeedComponent(speed): SpeedComponent

Defined in: common/components/speed-component.ts:13

Creates an instance of SpeedComponent.

Parameters

speed

number

the entity's speed

Returns

SpeedComponent

Overrides

Component.constructor

Properties

speed

speed: number

Defined in: common/components/speed-component.ts:7

Accessors

id

Get Signature

get static id(): symbol

Defined in: ecs/types/Component.ts:12

The unique id of the component.

Returns

symbol

Inherited from

Component.id