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
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?
readonlystaticoptionalrequiredComponents?: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
Methods
updatePreviousState()
updatePreviousState():
void
Defined in: input/player-input.ts:24
Returns
void