Skip to content

Commit 4df2179

Browse files
committed
Fixed this return types for Phaser.GameObjects.Light
1 parent 66e3144 commit 4df2179

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/gameobjects/lights/Light.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var Light = new Class({
135135
* @param {number} b - The blue color. A value between 0 and 1.
136136
* @param {number} intensity - The intensity of the light.
137137
*
138-
* @return {Phaser.GameObjects.Light} This Light object.
138+
* @return {this} This Light object.
139139
*/
140140
set: function (x, y, radius, r, g, b, intensity)
141141
{
@@ -165,7 +165,7 @@ var Light = new Class({
165165
* @param {number} x - The horizontal scroll factor of the light.
166166
* @param {number} y - The vertical scroll factor of the light.
167167
*
168-
* @return {Phaser.GameObjects.Light} This Light object.
168+
* @return {this} This Light object.
169169
*/
170170
setScrollFactor: function (x, y)
171171
{
@@ -186,7 +186,7 @@ var Light = new Class({
186186
*
187187
* @param {number} rgb - The integer RGB color of the light.
188188
*
189-
* @return {Phaser.GameObjects.Light} This Light object.
189+
* @return {this} This Light object.
190190
*/
191191
setColor: function (rgb)
192192
{
@@ -207,7 +207,7 @@ var Light = new Class({
207207
*
208208
* @param {number} intensity - The intensity of the light.
209209
*
210-
* @return {Phaser.GameObjects.Light} This Light object.
210+
* @return {this} This Light object.
211211
*/
212212
setIntensity: function (intensity)
213213
{
@@ -225,7 +225,7 @@ var Light = new Class({
225225
* @param {number} x - The horizontal position of the light.
226226
* @param {number} y - The vertical position of the light.
227227
*
228-
* @return {Phaser.GameObjects.Light} This Light object.
228+
* @return {this} This Light object.
229229
*/
230230
setPosition: function (x, y)
231231
{
@@ -243,7 +243,7 @@ var Light = new Class({
243243
*
244244
* @param {number} radius - The radius of the light.
245245
*
246-
* @return {Phaser.GameObjects.Light} This Light object.
246+
* @return {this} This Light object.
247247
*/
248248
setRadius: function (radius)
249249
{

types/phaser.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18520,39 +18520,39 @@ declare namespace Phaser {
1852018520
* @param b The blue color. A value between 0 and 1.
1852118521
* @param intensity The intensity of the light.
1852218522
*/
18523-
set(x: number, y: number, radius: number, r: number, g: number, b: number, intensity: number): Phaser.GameObjects.Light;
18523+
set(x: number, y: number, radius: number, r: number, g: number, b: number, intensity: number): this;
1852418524

1852518525
/**
1852618526
* Set the scroll factor of the light.
1852718527
* @param x The horizontal scroll factor of the light.
1852818528
* @param y The vertical scroll factor of the light.
1852918529
*/
18530-
setScrollFactor(x: number, y: number): Phaser.GameObjects.Light;
18530+
setScrollFactor(x: number, y: number): this;
1853118531

1853218532
/**
1853318533
* Set the color of the light from a single integer RGB value.
1853418534
* @param rgb The integer RGB color of the light.
1853518535
*/
18536-
setColor(rgb: number): Phaser.GameObjects.Light;
18536+
setColor(rgb: number): this;
1853718537

1853818538
/**
1853918539
* Set the intensity of the light.
1854018540
* @param intensity The intensity of the light.
1854118541
*/
18542-
setIntensity(intensity: number): Phaser.GameObjects.Light;
18542+
setIntensity(intensity: number): this;
1854318543

1854418544
/**
1854518545
* Set the position of the light.
1854618546
* @param x The horizontal position of the light.
1854718547
* @param y The vertical position of the light.
1854818548
*/
18549-
setPosition(x: number, y: number): Phaser.GameObjects.Light;
18549+
setPosition(x: number, y: number): this;
1855018550

1855118551
/**
1855218552
* Set the radius of the light.
1855318553
* @param radius The radius of the light.
1855418554
*/
18555-
setRadius(radius: number): Phaser.GameObjects.Light;
18555+
setRadius(radius: number): this;
1855618556

1855718557
}
1855818558

0 commit comments

Comments
 (0)