Skip to main content

Class: TPlayerInputComponent

Defined in: input/player-input.ts:15

A component is a data structure that describes a property of an entity.

Extends​

Constructors​

Constructor​

new TPlayerInputComponent(): TPlayerInputComponent

Returns​

TPlayerInputComponent

Inherited from​

TComponent.constructor

Properties​

moveDirection​

moveDirection: vec2

Defined in: input/player-input.ts:16


previousState​

previousState: object

Defined in: input/player-input.ts:18

moveDirection​

moveDirection: vec2


requiredComponents?​

readonly static optional requiredComponents?: TComponentConstructor<TComponent>[]

Defined in: core/component.ts:9

The components that are required by this component. If the entity doesn't have any of the components, they will be created with default values.

Inherited from​

TComponent.requiredComponents

Methods​

updatePreviousState()​

updatePreviousState(): void

Defined in: input/player-input.ts:24

Returns​

void