Skip to content

Commit 270f7b3

Browse files
committed
Fixed this return types for Phaser.GameObjects.Particles.ParticleEmitterManager
1 parent 1fd71ae commit 270f7b3

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/gameobjects/particles/ParticleEmitterManager.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ var ParticleEmitterManager = new Class({
160160
* @param {string} key - The key of the texture to be used, as stored in the Texture Manager.
161161
* @param {(string|integer)} [frame] - The name or index of the frame within the Texture.
162162
*
163-
* @return {Phaser.GameObjects.Particles.ParticleEmitterManager} This Emitter Manager.
163+
* @return {this} This Emitter Manager.
164164
*/
165165
setTexture: function (key, frame)
166166
{
@@ -181,7 +181,7 @@ var ParticleEmitterManager = new Class({
181181
*
182182
* @param {(string|integer)} [frame] - The name or index of the frame within the Texture.
183183
*
184-
* @return {Phaser.GameObjects.Particles.ParticleEmitterManager} This Emitter Manager.
184+
* @return {this} This Emitter Manager.
185185
*/
186186
setFrame: function (frame)
187187
{
@@ -212,7 +212,7 @@ var ParticleEmitterManager = new Class({
212212
* @param {(Phaser.Textures.Frame|Phaser.Textures.Frame[])} frames - The texture frames.
213213
* @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - The particle emitter to modify.
214214
*
215-
* @return {Phaser.GameObjects.Particles.ParticleEmitterManager} This Emitter Manager.
215+
* @return {this} This Emitter Manager.
216216
*/
217217
setEmitterFrames: function (frames, emitter)
218218
{
@@ -332,7 +332,7 @@ var ParticleEmitterManager = new Class({
332332
* @param {number} [x] - The x-coordinate to to emit particles from. The default is the x-coordinate of the emitter's current location.
333333
* @param {number} [y] - The y-coordinate to to emit particles from. The default is the y-coordinate of the emitter's current location.
334334
*
335-
* @return {Phaser.GameObjects.Particles.ParticleEmitterManager} This Emitter Manager.
335+
* @return {this} This Emitter Manager.
336336
*/
337337
emitParticle: function (count, x, y)
338338
{
@@ -361,7 +361,7 @@ var ParticleEmitterManager = new Class({
361361
* @param {number} [y] - The y-coordinate to to emit particles from. The default is the y-coordinate of the emitter's current location.
362362
* @param {integer} [count] - The number of particles to release from each emitter. The default is the emitter's own {@link Phaser.GameObjects.Particles.ParticleEmitter#quantity}.
363363
*
364-
* @return {Phaser.GameObjects.Particles.ParticleEmitterManager} This Emitter Manager.
364+
* @return {this} This Emitter Manager.
365365
*/
366366
emitParticleAt: function (x, y, count)
367367
{
@@ -378,7 +378,7 @@ var ParticleEmitterManager = new Class({
378378
* @method Phaser.GameObjects.Particles.ParticleEmitterManager#pause
379379
* @since 3.0.0
380380
*
381-
* @return {Phaser.GameObjects.Particles.ParticleEmitterManager} This Emitter Manager.
381+
* @return {this} This Emitter Manager.
382382
*/
383383
pause: function ()
384384
{
@@ -393,7 +393,7 @@ var ParticleEmitterManager = new Class({
393393
* @method Phaser.GameObjects.Particles.ParticleEmitterManager#resume
394394
* @since 3.0.0
395395
*
396-
* @return {Phaser.GameObjects.Particles.ParticleEmitterManager} This Emitter Manager.
396+
* @return {this} This Emitter Manager.
397397
*/
398398
resume: function ()
399399
{

types/phaser.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20532,7 +20532,7 @@ declare namespace Phaser {
2053220532
* @param key The key of the texture to be used, as stored in the Texture Manager.
2053320533
* @param frame The name or index of the frame within the Texture.
2053420534
*/
20535-
setTexture(key: string, frame?: string | integer): Phaser.GameObjects.Particles.ParticleEmitterManager;
20535+
setTexture(key: string, frame?: string | integer): this;
2053620536

2053720537
/**
2053820538
* Sets the frame this Emitter Manager will use to render with.
@@ -20542,14 +20542,14 @@ declare namespace Phaser {
2054220542
* It can be either a string or an index.
2054320543
* @param frame The name or index of the frame within the Texture.
2054420544
*/
20545-
setFrame(frame?: string | integer): Phaser.GameObjects.Particles.ParticleEmitterManager;
20545+
setFrame(frame?: string | integer): this;
2054620546

2054720547
/**
2054820548
* Assigns texture frames to an emitter.
2054920549
* @param frames The texture frames.
2055020550
* @param emitter The particle emitter to modify.
2055120551
*/
20552-
setEmitterFrames(frames: Phaser.Textures.Frame | Phaser.Textures.Frame[], emitter: Phaser.GameObjects.Particles.ParticleEmitter): Phaser.GameObjects.Particles.ParticleEmitterManager;
20552+
setEmitterFrames(frames: Phaser.Textures.Frame | Phaser.Textures.Frame[], emitter: Phaser.GameObjects.Particles.ParticleEmitter): this;
2055320553

2055420554
/**
2055520555
* Adds an existing Particle Emitter to this Emitter Manager.
@@ -20586,15 +20586,15 @@ declare namespace Phaser {
2058620586
* @param x The x-coordinate to to emit particles from. The default is the x-coordinate of the emitter's current location.
2058720587
* @param y The y-coordinate to to emit particles from. The default is the y-coordinate of the emitter's current location.
2058820588
*/
20589-
emitParticle(count?: integer, x?: number, y?: number): Phaser.GameObjects.Particles.ParticleEmitterManager;
20589+
emitParticle(count?: integer, x?: number, y?: number): this;
2059020590

2059120591
/**
2059220592
* Emits particles from each active emitter.
2059320593
* @param x The x-coordinate to to emit particles from. The default is the x-coordinate of the emitter's current location.
2059420594
* @param y The y-coordinate to to emit particles from. The default is the y-coordinate of the emitter's current location.
2059520595
* @param count The number of particles to release from each emitter. The default is the emitter's own {@link Phaser.GameObjects.Particles.ParticleEmitter#quantity}.
2059620596
*/
20597-
emitParticleAt(x?: number, y?: number, count?: integer): Phaser.GameObjects.Particles.ParticleEmitterManager;
20597+
emitParticleAt(x?: number, y?: number, count?: integer): this;
2059820598

2059920599
/**
2060020600
* Pauses this Emitter Manager.
@@ -20603,12 +20603,12 @@ declare namespace Phaser {
2060320603
*
2060420604
* The particles will still render, but they will not have any of their logic updated.
2060520605
*/
20606-
pause(): Phaser.GameObjects.Particles.ParticleEmitterManager;
20606+
pause(): this;
2060720607

2060820608
/**
2060920609
* Resumes this Emitter Manager, should it have been previously paused.
2061020610
*/
20611-
resume(): Phaser.GameObjects.Particles.ParticleEmitterManager;
20611+
resume(): this;
2061220612

2061320613
/**
2061420614
* Gets all active particle processors (gravity wells).

0 commit comments

Comments
 (0)