Layer
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Private Members | ||
private |
config(horizontalSpeed: number, verticalSpeed: number, plane: number, backgrounds: Diob[] | MapObject[], instances: Set): Object The configuration object of this layer. |
Method Summary
Public Methods | ||
public |
Adds the instance to the parallax layer. |
|
public |
remove(pInstance: Diob) Removes the instance from the parallax layer. |
|
public |
updateConfigSpeed(pConfig: Object, pUpdateLayerConfigOnly: boolean) Updates the configuration speed of the layer. |
|
public |
updateHorizontalSpeed(pHorizontalSpeed: number, pUpdateLayerConfigOnly: boolean) Updates the horizontal speed of this layer. |
|
public |
updateVerticalSpeed(pVerticalSpeed: number, pUpdateLayerConfigOnly: boolean) Updates the vertical speed of the layer. |
Public Constructors
public constructor() source
Private Members
Public Methods
public add(pInstance: Diob, pConfig: Object) source
Adds the instance to the parallax layer. When using this API the instance should already be on the map.
Params:
Name | Type | Attribute | Description |
pInstance | Diob | The instance to add to the layer. |
|
pConfig | Object | The personal config of this instance. Akin to the parallax info passed via the |
public remove(pInstance: Diob) source
Removes the instance from the parallax layer.
Params:
Name | Type | Attribute | Description |
pInstance | Diob | The instance to remove from the layer. |
public updateConfigSpeed(pConfig: Object, pUpdateLayerConfigOnly: boolean) source
Updates the configuration speed of the layer.
public updateHorizontalSpeed(pHorizontalSpeed: number, pUpdateLayerConfigOnly: boolean) source
Updates the horizontal speed of this layer.