mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
3.52.0 TS Defs
This commit is contained in:
parent
61febe8adf
commit
0429dacee3
1 changed files with 103 additions and 50 deletions
153
types/phaser.d.ts
vendored
153
types/phaser.d.ts
vendored
|
@ -2711,6 +2711,27 @@ declare namespace Phaser {
|
|||
*/
|
||||
mask: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask;
|
||||
|
||||
/**
|
||||
* This array is populated with all of the Game Objects that this Camera has rendered
|
||||
* in the previous (or current, depending on when you inspect it) frame.
|
||||
*
|
||||
* It is cleared at the start of `Camera.preUpdate`, or if the Camera is destroyed.
|
||||
*
|
||||
* You should not modify this array as it is used internally by the input system,
|
||||
* however you can read it as required. Note that Game Objects may appear in this
|
||||
* list multiple times if they belong to multiple non-exclusive Containers.
|
||||
*/
|
||||
renderList: Phaser.GameObjects.GameObject[];
|
||||
|
||||
/**
|
||||
* Adds the given Game Object to this cameras render list.
|
||||
*
|
||||
* This is invoked during the rendering stage. Only objects that are actually rendered
|
||||
* will appear in the render list.
|
||||
* @param child The Game Object to add to the render list.
|
||||
*/
|
||||
addToRenderList(child: Phaser.GameObjects.GameObject): void;
|
||||
|
||||
/**
|
||||
* Set the Alpha level of this Camera. The alpha controls the opacity of the Camera as it renders.
|
||||
* Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.
|
||||
|
@ -3797,7 +3818,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -4007,9 +4028,9 @@ declare namespace Phaser {
|
|||
* It will iterate through all local cameras and render them in turn, as long as they're visible and have
|
||||
* an alpha level > 0.
|
||||
* @param renderer The Renderer that will render the children to this camera.
|
||||
* @param children The Display List for the Scene.
|
||||
* @param displayList The Display List for the Scene.
|
||||
*/
|
||||
protected render(renderer: Phaser.Renderer.Canvas.CanvasRenderer | Phaser.Renderer.WebGL.WebGLRenderer, children: Phaser.GameObjects.DisplayList): void;
|
||||
protected render(renderer: Phaser.Renderer.Canvas.CanvasRenderer | Phaser.Renderer.WebGL.WebGLRenderer, displayList: Phaser.GameObjects.DisplayList): void;
|
||||
|
||||
/**
|
||||
* Takes an array of Game Objects and a Camera and returns a new array
|
||||
|
@ -11623,7 +11644,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -12752,7 +12773,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -13539,7 +13560,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -14771,7 +14792,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
* @param resetPostPipelines Reset all of the post pipelines? Default false.
|
||||
|
@ -16437,7 +16458,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -19159,7 +19180,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -20498,7 +20519,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -21681,7 +21702,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -22030,9 +22051,11 @@ declare namespace Phaser {
|
|||
* Support for generating mesh data from grids, model data or Wavefront OBJ Files is included.
|
||||
*
|
||||
* Although you can use this to render 3D objects, its primary use is for displaying more complex
|
||||
* Sprites, or Sprites where you need fine-grained control over the vertice positions in order to
|
||||
* achieve special effects in your games. Note that rendering still takes place using Phasers
|
||||
* orthographic camera. As a result, all depth and face tests are done in orthographic space.
|
||||
* Sprites, or Sprites where you need fine-grained control over the vertex positions in order to
|
||||
* achieve special effects in your games. Note that rendering still takes place using Phaser's
|
||||
* orthographic camera (after being transformed via `projectionMesh`, see `setPerspective`,
|
||||
* `setOrtho`, and `panZ` methods). As a result, all depth and face tests are done in an eventually
|
||||
* orthographic space.
|
||||
*
|
||||
* The rendering process will iterate through the faces of this Mesh and render out each face
|
||||
* that is considered as being in view of the camera. No depth buffer is used, and because of this,
|
||||
|
@ -22060,10 +22083,10 @@ declare namespace Phaser {
|
|||
* @param y The vertical position of this Game Object in the world.
|
||||
* @param texture The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.
|
||||
* @param frame An optional frame from the Texture this Game Object is rendering with.
|
||||
* @param vertices The vertices array. Either `xy` pairs, or `xyz` if the `containsZ` parameter is `true`.
|
||||
* @param vertices The vertices array. Either `xy` pairs, or `xyz` if the `containsZ` parameter is `true` (but see note).
|
||||
* @param uvs The UVs pairs array.
|
||||
* @param indicies Optional vertex indicies array. If you don't have one, pass `null` or an empty array.
|
||||
* @param containsZ Does the vertices data include a `z` component? Default false.
|
||||
* @param containsZ Does the vertices data include a `z` component? Note: If not, it will be assumed `z=0`, see method `panZ` or `setOrtho`. Default false.
|
||||
* @param normals Optional vertex normals array. If you don't have one, pass `null` or an empty array.
|
||||
* @param colors An array of colors, one per vertex, or a single color value applied to all vertices. Default 0xffffff.
|
||||
* @param alphas An array of alpha values, one per vertex, or a single alpha value applied to all vertices. Default 1.
|
||||
|
@ -22231,6 +22254,9 @@ declare namespace Phaser {
|
|||
|
||||
/**
|
||||
* Translates the view position of this Mesh on the z axis by the given amount.
|
||||
*
|
||||
* As the default `panZ` value is 0, vertices with `z=0` (the default) need special care or else they will not display as they are behind the camera.
|
||||
* Consider using `mesh.panZ(mesh.height / (2 * Math.tan(Math.PI / 16)))`, which will interpret vertex geometry 1:1 with pixel geometry (or see `setOrtho`).
|
||||
* @param v The amount to pan by.
|
||||
*/
|
||||
panZ(v: number): void;
|
||||
|
@ -22238,6 +22264,8 @@ declare namespace Phaser {
|
|||
/**
|
||||
* Builds a new perspective projection matrix from the given values.
|
||||
*
|
||||
* These are also the initial projection matrix & parameters for `Mesh` (and see `panZ` for more discussion).
|
||||
*
|
||||
* See also `setOrtho`.
|
||||
* @param width The width of the projection matrix. Typically the same as the Mesh and/or Renderer.
|
||||
* @param height The height of the projection matrix. Typically the same as the Mesh and/or Renderer.
|
||||
|
@ -22253,7 +22281,8 @@ declare namespace Phaser {
|
|||
* If using this mode you will often need to set `Mesh.hideCCW` to `false` as well.
|
||||
*
|
||||
* By default, calling this method with no parameters will set the scaleX value to
|
||||
* match the renderers aspect ratio.
|
||||
* match the renderer's aspect ratio. If you would like to render vertex positions 1:1
|
||||
* to pixel positions, consider calling as `mesh.setOrtho(mesh.width, mesh.height)`.
|
||||
*
|
||||
* See also `setPerspective`.
|
||||
* @param scaleX The default horizontal scale in relation to the Mesh / Renderer dimensions. Default 1.
|
||||
|
@ -22344,7 +22373,7 @@ declare namespace Phaser {
|
|||
*
|
||||
* This method will take vertex data in one of two formats, based on the `containsZ` parameter.
|
||||
*
|
||||
* If your vertex data are `x`, `y` pairs, then `containsZ` should be `false` (this is the default)
|
||||
* If your vertex data are `x`, `y` pairs, then `containsZ` should be `false` (this is the default, and will result in `z=0` for each vertex).
|
||||
*
|
||||
* If your vertex data is groups of `x`, `y` and `z` values, then the `containsZ` parameter must be true.
|
||||
*
|
||||
|
@ -22363,6 +22392,7 @@ declare namespace Phaser {
|
|||
* The following example will create a 256 x 256 sized quad using an index array:
|
||||
*
|
||||
* ```javascript
|
||||
* let mesh = new Mesh(this); // Assuming `this` is a scene!
|
||||
* const vertices = [
|
||||
* -128, 128,
|
||||
* 128, 128,
|
||||
|
@ -22380,13 +22410,16 @@ declare namespace Phaser {
|
|||
* const indices = [ 0, 2, 1, 2, 3, 1 ];
|
||||
*
|
||||
* mesh.addVertices(vertices, uvs, indicies);
|
||||
* // Note: Otherwise the added points will be "behind" the camera! This value will project vertex `x` & `y` values 1:1 to pixel values.
|
||||
* mesh.hideCCW = false;
|
||||
* mesh.setOrtho(mesh.width, mesh.height);
|
||||
* ```
|
||||
*
|
||||
* If the data is not indexed, it's assumed that the arrays all contain sequential data.
|
||||
* @param vertices The vertices array. Either `xy` pairs, or `xyz` if the `containsZ` parameter is `true`.
|
||||
* @param uvs The UVs pairs array.
|
||||
* @param indicies Optional vertex indicies array. If you don't have one, pass `null` or an empty array.
|
||||
* @param containsZ Does the vertices data include a `z` component? Default false.
|
||||
* @param containsZ Does the vertices data include a `z` component? If not, it will be assumed `z=0`, see methods `panZ` or `setOrtho`. Default false.
|
||||
* @param normals Optional vertex normals array. If you don't have one, pass `null` or an empty array.
|
||||
* @param colors An array of colors, one per vertex, or a single color value applied to all vertices. Default 0xffffff.
|
||||
* @param alphas An array of alpha values, one per vertex, or a single alpha value applied to all vertices. Default 1.
|
||||
|
@ -22749,7 +22782,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -24667,7 +24700,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -25564,7 +25597,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -26547,7 +26580,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -27915,7 +27948,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -28934,7 +28967,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -30741,7 +30774,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -31491,7 +31524,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -32194,7 +32227,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -32907,7 +32940,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -33690,7 +33723,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -34440,7 +34473,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -35204,7 +35237,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -35924,7 +35957,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -36625,7 +36658,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -37324,7 +37357,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -38051,7 +38084,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -38752,7 +38785,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -39769,7 +39802,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -41272,7 +41305,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -42765,7 +42798,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -44133,7 +44166,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -48605,11 +48638,19 @@ declare namespace Phaser {
|
|||
setTopOnly(value: boolean): this;
|
||||
|
||||
/**
|
||||
* Given an array of Game Objects, sort the array and return it, so that the objects are in depth index order
|
||||
* with the lowest at the bottom.
|
||||
* Given an array of Game Objects and a Pointer, sort the array and return it,
|
||||
* so that the objects are in render order with the lowest at the bottom.
|
||||
* @param gameObjects An array of Game Objects to be sorted.
|
||||
* @param pointer The Pointer to check against the Game Objects.
|
||||
*/
|
||||
sortGameObjects(gameObjects: Phaser.GameObjects.GameObject[], pointer: Phaser.Input.Pointer): Phaser.GameObjects.GameObject[];
|
||||
|
||||
/**
|
||||
* Given an array of Drop Zone Game Objects, sort the array and return it,
|
||||
* so that the objects are in depth index order with the lowest at the bottom.
|
||||
* @param gameObjects An array of Game Objects to be sorted.
|
||||
*/
|
||||
sortGameObjects(gameObjects: Phaser.GameObjects.GameObject[]): Phaser.GameObjects.GameObject[];
|
||||
sortDropZones(gameObjects: Phaser.GameObjects.GameObject[]): Phaser.GameObjects.GameObject[];
|
||||
|
||||
/**
|
||||
* This method should be called from within an input event handler, such as `pointerdown`.
|
||||
|
@ -62355,7 +62396,7 @@ declare namespace Phaser {
|
|||
/**
|
||||
* An array of Vertex objects generated from the OBJ Data.
|
||||
*/
|
||||
verts: Phaser.Geom.Mesh.Vertex[];
|
||||
vertices: Phaser.Geom.Mesh.Vertex[];
|
||||
};
|
||||
|
||||
type OBJData = {
|
||||
|
@ -67367,7 +67408,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -69030,7 +69071,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -73866,7 +73907,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -75801,7 +75842,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
@ -89453,21 +89494,33 @@ declare namespace Phaser {
|
|||
|
||||
/**
|
||||
* Whether the tile should collide with any object on the left side.
|
||||
*
|
||||
* This property is used by Arcade Physics only, however, you can also use it
|
||||
* in your own checks.
|
||||
*/
|
||||
collideLeft: boolean;
|
||||
|
||||
/**
|
||||
* Whether the tile should collide with any object on the right side.
|
||||
*
|
||||
* This property is used by Arcade Physics only, however, you can also use it
|
||||
* in your own checks.
|
||||
*/
|
||||
collideRight: boolean;
|
||||
|
||||
/**
|
||||
* Whether the tile should collide with any object on the top side.
|
||||
*
|
||||
* This property is used by Arcade Physics only, however, you can also use it
|
||||
* in your own checks.
|
||||
*/
|
||||
collideUp: boolean;
|
||||
|
||||
/**
|
||||
* Whether the tile should collide with any object on the bottom side.
|
||||
*
|
||||
* This property is used by Arcade Physics only, however, you can also use it
|
||||
* in your own checks.
|
||||
*/
|
||||
collideDown: boolean;
|
||||
|
||||
|
@ -91996,7 +92049,7 @@ declare namespace Phaser {
|
|||
* Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.
|
||||
* @param pipeline The string-based name of the pipeline, or a pipeline class.
|
||||
*/
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline;
|
||||
getPostPipeline(pipeline: string | Function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline): Phaser.Renderer.WebGL.Pipelines.PostFXPipeline | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[];
|
||||
|
||||
/**
|
||||
* Resets the WebGL Pipeline of this Game Object back to the default it was created with.
|
||||
|
|
Loading…
Reference in a new issue