Skip to content

Commit

Permalink
New TS Defs
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 26, 2021
1 parent 55b69e5 commit f870e33
Showing 1 changed file with 49 additions and 6 deletions.
55 changes: 49 additions & 6 deletions types/phaser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17390,8 +17390,9 @@ declare namespace Phaser {
*
* If you just want to temporarily disable an object then look at using the
* Game Object Pool instead of destroying it, as destroyed objects cannot be resurrected.
* @param fromScene `True` if this Game Object is being destroyed by the Scene, `false` if not. Default false.
*/
destroy(): void;
destroy(fromScene?: boolean): void;

/**
* The bitmask that `GameObject.renderFlags` is compared against to determine if the Game Object will render or not.
Expand Down Expand Up @@ -62388,8 +62389,14 @@ declare namespace Phaser {
};

type GameObjectConfig = {
undefined: any;
undefined: any;
/**
* The x position of the Game Object.
*/
x?: number | object;
/**
* The y position of the Game Object.
*/
y?: number | object;
/**
* The depth of the GameObject.
*/
Expand All @@ -62410,9 +62417,18 @@ declare namespace Phaser {
* The scroll factor of the GameObject.
*/
scrollFactor?: number | object;
undefined: any;
undefined: any;
undefined: any;
/**
* The rotation angle of the Game Object, in radians.
*/
rotation?: number | object;
/**
* The rotation angle of the Game Object, in degrees.
*/
angle?: number | object;
/**
* The alpha (opacity) of the Game Object.
*/
alpha?: number | object;
/**
* The origin of the Game Object.
*/
Expand Down Expand Up @@ -65532,6 +65548,33 @@ declare namespace Phaser {
attributes?: Phaser.Types.Renderer.WebGL.WebGLPipelineAttributeConfig[];
};

type WebGLPipelineUniformsConfig = {
/**
* The name of the uniform as defined in the shader.
*/
name: string;
/**
* The location of the uniform.
*/
location: number;
/**
* The first cached value of the uniform.
*/
value1?: number;
/**
* The first cached value of the uniform.
*/
value2?: number;
/**
* The first cached value of the uniform.
*/
value3?: number;
/**
* The first cached value of the uniform.
*/
value4?: number;
};

type WebGLTextureCompression = {
/**
* Indicates if ETC1 compression is supported on current device (mostly Android).
Expand Down

0 comments on commit f870e33

Please sign in to comment.