Static Member Summary
Static Public Members | ||
public static get |
EventFlags: * |
|
public static get |
propsTypes: {"listenTo": *} |
Static Method Summary
Static Public Methods | ||
public static |
factory(): * |
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
dispose() |
|
public |
onAction(name: *, args: ...*): * |
|
public |
onAttach() |
|
public |
onContactBegin(body: *, contact: *) |
|
public |
onContactEnd(body: *, contact: *) |
|
public |
onDetach() |
|
public |
onGamepadConnected(gamepad: *) |
|
public |
onGamepadDisconnected(gamepad: *) |
|
public |
onGamepadProcess(gamepad: *) |
|
public |
onKeyDown(code: *) |
|
public |
onKeyUp(code: *) |
|
public |
onMouseDown(unitVec: *, screenVec: *, button: *) |
|
public |
onMouseMove(unitVec: *, screenVec: *) |
|
public |
onMouseUp(unitVec: *, screenVec: *, button: *) |
|
public |
onPreview(gl: *, renderer: *, deltaTime: *) |
|
public |
onPropertySerialize(name: *, value: *): * |
|
public |
onPropertySetup(name: *, value: *) |
|
public |
onRender(gl: *, renderer: *, deltaTime: *, layer: *) |
|
public |
onRenderLayer(gl: *, renderer: *, deltaTime: *, layer: *) |
|
public |
onTouchDown(unitVec: *, screenVec: *, identifier: *) |
|
public |
onTouchMove(unitVec: *, screenVec: *, identifier: *) |
|
public |
onTouchUp(unitVec: *, screenVec: *, identifier: *) |
|
public |
onUpdate(deltaTime: *) |
Inherited Summary
From class Component | ||
public static get |
propsTypes: * |
|
public static |
Component factory. |
|
public get |
|
|
public |
[name]: * |
|
public |
deserialize(json: *) Deserialize JSON properties into this component. |
|
public |
dispose() Destructor (dispose internal resources and detach from entity). |
|
public |
Called when action arrived. |
|
public |
onAlterActionArguments(name: string, args: *): array | undefined Called when asked to alter arrived action parameters. |
|
public |
onAttach() Called after attached to entity. |
|
public |
onDetach() Called before detached from entity. |
|
public |
onPropertySerialize(name: string, value: *): * Called when property is serialized. |
|
public |
onPropertySetup(name: string, value: *) Called when given property is deserialized. |
|
public |
serialize(): * Serialize component into JSON data. |
Static Public Members
public static get EventFlags: * source
Static Public Methods
Public Constructors
Public Methods
public dispose() source
Destructor (dispose internal resources and detach from entity).
Override:
Component#disposepublic onAction(name: *, args: ...*): * source
Called when action arrived.
Override:
Component#onActionParams:
Name | Type | Attribute | Description |
name | * | ||
args | ...* |
Return:
* |
public onContactBegin(body: *, contact: *) source
Params:
Name | Type | Attribute | Description |
body | * | ||
contact | * |
public onContactEnd(body: *, contact: *) source
Params:
Name | Type | Attribute | Description |
body | * | ||
contact | * |
public onGamepadConnected(gamepad: *) source
Params:
Name | Type | Attribute | Description |
gamepad | * |
public onGamepadDisconnected(gamepad: *) source
Params:
Name | Type | Attribute | Description |
gamepad | * |
public onGamepadProcess(gamepad: *) source
Params:
Name | Type | Attribute | Description |
gamepad | * |
public onKeyDown(code: *) source
Params:
Name | Type | Attribute | Description |
code | * |
public onKeyUp(code: *) source
Params:
Name | Type | Attribute | Description |
code | * |
public onMouseDown(unitVec: *, screenVec: *, button: *) source
Params:
Name | Type | Attribute | Description |
unitVec | * | ||
screenVec | * | ||
button | * |
public onMouseMove(unitVec: *, screenVec: *) source
Params:
Name | Type | Attribute | Description |
unitVec | * | ||
screenVec | * |
public onMouseUp(unitVec: *, screenVec: *, button: *) source
Params:
Name | Type | Attribute | Description |
unitVec | * | ||
screenVec | * | ||
button | * |
public onPreview(gl: *, renderer: *, deltaTime: *) source
Params:
Name | Type | Attribute | Description |
gl | * | ||
renderer | * | ||
deltaTime | * |
public onPropertySerialize(name: *, value: *): * source
Called when property is serialized.
Override:
Component#onPropertySerializeParams:
Name | Type | Attribute | Description |
name | * | ||
value | * |
Return:
* |
public onPropertySetup(name: *, value: *) source
Called when given property is deserialized.
Override:
Component#onPropertySetupParams:
Name | Type | Attribute | Description |
name | * | ||
value | * |
public onRender(gl: *, renderer: *, deltaTime: *, layer: *) source
Params:
Name | Type | Attribute | Description |
gl | * | ||
renderer | * | ||
deltaTime | * | ||
layer | * |
public onRenderLayer(gl: *, renderer: *, deltaTime: *, layer: *) source
Params:
Name | Type | Attribute | Description |
gl | * | ||
renderer | * | ||
deltaTime | * | ||
layer | * |
public onTouchDown(unitVec: *, screenVec: *, identifier: *) source
Params:
Name | Type | Attribute | Description |
unitVec | * | ||
screenVec | * | ||
identifier | * |
public onTouchMove(unitVec: *, screenVec: *, identifier: *) source
Params:
Name | Type | Attribute | Description |
unitVec | * | ||
screenVec | * | ||
identifier | * |
public onTouchUp(unitVec: *, screenVec: *, identifier: *) source
Params:
Name | Type | Attribute | Description |
unitVec | * | ||
screenVec | * | ||
identifier | * |
public onUpdate(deltaTime: *) source
Params:
Name | Type | Attribute | Description |
deltaTime | * |