Skip to content

Commit 6d68565

Browse files
committed
v3.85.1
1 parent 5568477 commit 6d68565

12 files changed

+230149
-230478
lines changed

dist/phaser-arcade-physics.js

Lines changed: 127 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15645,7 +15645,7 @@ var CONST = {
1564515645
* @type {string}
1564615646
* @since 3.0.0
1564715647
*/
15648-
VERSION: '3.85.0',
15648+
VERSION: '3.85.1',
1564915649

1565015650
BlendModes: __webpack_require__(10312),
1565115651

@@ -56302,7 +56302,6 @@ var StableSort = __webpack_require__(19186);
5630256302
* @extends Phaser.GameObjects.Components.Mask
5630356303
* @extends Phaser.GameObjects.Components.PostPipeline
5630456304
* @extends Phaser.GameObjects.Components.Visible
56305-
* @extends Phaser.Events.EventEmitter
5630656305
*
5630756306
* @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.
5630856307
* @param {Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Layer.
@@ -57046,14 +57045,14 @@ var Layer = new Class({
5704657045
},
5704757046

5704857047
/**
57049-
* Returns an array which contains all Game Objects within this Layer.
57048+
* Returns a reference to the array which contains all Game Objects in this Layer.
5705057049
*
57051-
* This is a reference to the main list array, not a copy of it, so be careful not to modify it.
57050+
* This is a reference, not a copy of it, so be very careful not to mutate it.
5705257051
*
5705357052
* @method Phaser.GameObjects.Layer#getChildren
5705457053
* @since 3.50.0
5705557054
*
57056-
* @return {Phaser.GameObjects.GameObject[]} The group members.
57055+
* @return {Phaser.GameObjects.GameObject[]} An array of Game Objects within this Layer.
5705757056
*/
5705857057
getChildren: function ()
5705957058
{
@@ -57083,7 +57082,7 @@ var Layer = new Class({
5708357082
*
5708457083
* @param {(Phaser.GameObjects.DisplayList|Phaser.GameObjects.Layer)} [displayList] - The Display List to add to. Defaults to the Scene Display List.
5708557084
*
57086-
* @return {this} This Layer.
57085+
* @return {this} This Layer instance.
5708757086
*/
5708857087
addToDisplayList: function (displayList)
5708957088
{
@@ -57127,7 +57126,7 @@ var Layer = new Class({
5712757126
* @fires Phaser.GameObjects.Events#REMOVED_FROM_SCENE
5712857127
* @since 3.60.0
5712957128
*
57130-
* @return {this} This Layer.
57129+
* @return {this} This Layer instance.
5713157130
*/
5713257131
removeFromDisplayList: function ()
5713357132
{
@@ -57214,6 +57213,127 @@ var Layer = new Class({
5721457213
this.events = undefined;
5721557214
}
5721657215

57216+
/**
57217+
* Return an array listing the events for which the emitter has registered listeners.
57218+
*
57219+
* @method Phaser.GameObjects.Layer#eventNames
57220+
* @since 3.50.0
57221+
*
57222+
* @return {Array.<string|symbol>}
57223+
*/
57224+
57225+
/**
57226+
* Return the listeners registered for a given event.
57227+
*
57228+
* @method Phaser.GameObjects.Layer#listeners
57229+
* @since 3.50.0
57230+
*
57231+
* @param {(string|symbol)} event - The event name.
57232+
*
57233+
* @return {Function[]} The registered listeners.
57234+
*/
57235+
57236+
/**
57237+
* Return the number of listeners listening to a given event.
57238+
*
57239+
* @method Phaser.GameObjects.Layer#listenerCount
57240+
* @since 3.50.0
57241+
*
57242+
* @param {(string|symbol)} event - The event name.
57243+
*
57244+
* @return {number} The number of listeners.
57245+
*/
57246+
57247+
/**
57248+
* Calls each of the listeners registered for a given event.
57249+
*
57250+
* @method Phaser.GameObjects.Layer#emit
57251+
* @since 3.50.0
57252+
*
57253+
* @param {(string|symbol)} event - The event name.
57254+
* @param {...*} [args] - Additional arguments that will be passed to the event handler.
57255+
*
57256+
* @return {boolean} `true` if the event had listeners, else `false`.
57257+
*/
57258+
57259+
/**
57260+
* Add a listener for a given event.
57261+
*
57262+
* @method Phaser.GameObjects.Layer#on
57263+
* @since 3.50.0
57264+
*
57265+
* @param {(string|symbol)} event - The event name.
57266+
* @param {function} fn - The listener function.
57267+
* @param {*} [context=this] - The context to invoke the listener with.
57268+
*
57269+
* @return {this} This Layer instance.
57270+
*/
57271+
57272+
/**
57273+
* Add a listener for a given event.
57274+
*
57275+
* @method Phaser.GameObjects.Layer#addListener
57276+
* @since 3.50.0
57277+
*
57278+
* @param {(string|symbol)} event - The event name.
57279+
* @param {function} fn - The listener function.
57280+
* @param {*} [context=this] - The context to invoke the listener with.
57281+
*
57282+
* @return {this} This Layer instance.
57283+
*/
57284+
57285+
/**
57286+
* Add a one-time listener for a given event.
57287+
*
57288+
* @method Phaser.GameObjects.Layer#once
57289+
* @since 3.50.0
57290+
*
57291+
* @param {(string|symbol)} event - The event name.
57292+
* @param {function} fn - The listener function.
57293+
* @param {*} [context=this] - The context to invoke the listener with.
57294+
*
57295+
* @return {this} This Layer instance.
57296+
*/
57297+
57298+
/**
57299+
* Remove the listeners of a given event.
57300+
*
57301+
* @method Phaser.GameObjects.Layer#removeListener
57302+
* @since 3.50.0
57303+
*
57304+
* @param {(string|symbol)} event - The event name.
57305+
* @param {function} [fn] - Only remove the listeners that match this function.
57306+
* @param {*} [context] - Only remove the listeners that have this context.
57307+
* @param {boolean} [once] - Only remove one-time listeners.
57308+
*
57309+
* @return {this} This Layer instance.
57310+
*/
57311+
57312+
/**
57313+
* Remove the listeners of a given event.
57314+
*
57315+
* @method Phaser.GameObjects.Layer#off
57316+
* @since 3.50.0
57317+
*
57318+
* @param {(string|symbol)} event - The event name.
57319+
* @param {function} [fn] - Only remove the listeners that match this function.
57320+
* @param {*} [context] - Only remove the listeners that have this context.
57321+
* @param {boolean} [once] - Only remove one-time listeners.
57322+
*
57323+
* @return {this} This Layer instance.
57324+
*/
57325+
57326+
/**
57327+
* Remove all listeners, or those of the specified event.
57328+
*
57329+
* @method Phaser.GameObjects.Layer#removeAllListeners
57330+
* @since 3.50.0
57331+
*
57332+
* @param {(string|symbol)} [event] - The event name.
57333+
*
57334+
* @return {this} This Layer instance.
57335+
*/
57336+
5721757337
});
5721857338

5721957339
module.exports = Layer;

dist/phaser-arcade-physics.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/phaser-ie9.js

Lines changed: 127 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15645,7 +15645,7 @@ var CONST = {
1564515645
* @type {string}
1564615646
* @since 3.0.0
1564715647
*/
15648-
VERSION: '3.85.0',
15648+
VERSION: '3.85.1',
1564915649

1565015650
BlendModes: __webpack_require__(10312),
1565115651

@@ -56302,7 +56302,6 @@ var StableSort = __webpack_require__(19186);
5630256302
* @extends Phaser.GameObjects.Components.Mask
5630356303
* @extends Phaser.GameObjects.Components.PostPipeline
5630456304
* @extends Phaser.GameObjects.Components.Visible
56305-
* @extends Phaser.Events.EventEmitter
5630656305
*
5630756306
* @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.
5630856307
* @param {Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Layer.
@@ -57046,14 +57045,14 @@ var Layer = new Class({
5704657045
},
5704757046

5704857047
/**
57049-
* Returns an array which contains all Game Objects within this Layer.
57048+
* Returns a reference to the array which contains all Game Objects in this Layer.
5705057049
*
57051-
* This is a reference to the main list array, not a copy of it, so be careful not to modify it.
57050+
* This is a reference, not a copy of it, so be very careful not to mutate it.
5705257051
*
5705357052
* @method Phaser.GameObjects.Layer#getChildren
5705457053
* @since 3.50.0
5705557054
*
57056-
* @return {Phaser.GameObjects.GameObject[]} The group members.
57055+
* @return {Phaser.GameObjects.GameObject[]} An array of Game Objects within this Layer.
5705757056
*/
5705857057
getChildren: function ()
5705957058
{
@@ -57083,7 +57082,7 @@ var Layer = new Class({
5708357082
*
5708457083
* @param {(Phaser.GameObjects.DisplayList|Phaser.GameObjects.Layer)} [displayList] - The Display List to add to. Defaults to the Scene Display List.
5708557084
*
57086-
* @return {this} This Layer.
57085+
* @return {this} This Layer instance.
5708757086
*/
5708857087
addToDisplayList: function (displayList)
5708957088
{
@@ -57127,7 +57126,7 @@ var Layer = new Class({
5712757126
* @fires Phaser.GameObjects.Events#REMOVED_FROM_SCENE
5712857127
* @since 3.60.0
5712957128
*
57130-
* @return {this} This Layer.
57129+
* @return {this} This Layer instance.
5713157130
*/
5713257131
removeFromDisplayList: function ()
5713357132
{
@@ -57214,6 +57213,127 @@ var Layer = new Class({
5721457213
this.events = undefined;
5721557214
}
5721657215

57216+
/**
57217+
* Return an array listing the events for which the emitter has registered listeners.
57218+
*
57219+
* @method Phaser.GameObjects.Layer#eventNames
57220+
* @since 3.50.0
57221+
*
57222+
* @return {Array.<string|symbol>}
57223+
*/
57224+
57225+
/**
57226+
* Return the listeners registered for a given event.
57227+
*
57228+
* @method Phaser.GameObjects.Layer#listeners
57229+
* @since 3.50.0
57230+
*
57231+
* @param {(string|symbol)} event - The event name.
57232+
*
57233+
* @return {Function[]} The registered listeners.
57234+
*/
57235+
57236+
/**
57237+
* Return the number of listeners listening to a given event.
57238+
*
57239+
* @method Phaser.GameObjects.Layer#listenerCount
57240+
* @since 3.50.0
57241+
*
57242+
* @param {(string|symbol)} event - The event name.
57243+
*
57244+
* @return {number} The number of listeners.
57245+
*/
57246+
57247+
/**
57248+
* Calls each of the listeners registered for a given event.
57249+
*
57250+
* @method Phaser.GameObjects.Layer#emit
57251+
* @since 3.50.0
57252+
*
57253+
* @param {(string|symbol)} event - The event name.
57254+
* @param {...*} [args] - Additional arguments that will be passed to the event handler.
57255+
*
57256+
* @return {boolean} `true` if the event had listeners, else `false`.
57257+
*/
57258+
57259+
/**
57260+
* Add a listener for a given event.
57261+
*
57262+
* @method Phaser.GameObjects.Layer#on
57263+
* @since 3.50.0
57264+
*
57265+
* @param {(string|symbol)} event - The event name.
57266+
* @param {function} fn - The listener function.
57267+
* @param {*} [context=this] - The context to invoke the listener with.
57268+
*
57269+
* @return {this} This Layer instance.
57270+
*/
57271+
57272+
/**
57273+
* Add a listener for a given event.
57274+
*
57275+
* @method Phaser.GameObjects.Layer#addListener
57276+
* @since 3.50.0
57277+
*
57278+
* @param {(string|symbol)} event - The event name.
57279+
* @param {function} fn - The listener function.
57280+
* @param {*} [context=this] - The context to invoke the listener with.
57281+
*
57282+
* @return {this} This Layer instance.
57283+
*/
57284+
57285+
/**
57286+
* Add a one-time listener for a given event.
57287+
*
57288+
* @method Phaser.GameObjects.Layer#once
57289+
* @since 3.50.0
57290+
*
57291+
* @param {(string|symbol)} event - The event name.
57292+
* @param {function} fn - The listener function.
57293+
* @param {*} [context=this] - The context to invoke the listener with.
57294+
*
57295+
* @return {this} This Layer instance.
57296+
*/
57297+
57298+
/**
57299+
* Remove the listeners of a given event.
57300+
*
57301+
* @method Phaser.GameObjects.Layer#removeListener
57302+
* @since 3.50.0
57303+
*
57304+
* @param {(string|symbol)} event - The event name.
57305+
* @param {function} [fn] - Only remove the listeners that match this function.
57306+
* @param {*} [context] - Only remove the listeners that have this context.
57307+
* @param {boolean} [once] - Only remove one-time listeners.
57308+
*
57309+
* @return {this} This Layer instance.
57310+
*/
57311+
57312+
/**
57313+
* Remove the listeners of a given event.
57314+
*
57315+
* @method Phaser.GameObjects.Layer#off
57316+
* @since 3.50.0
57317+
*
57318+
* @param {(string|symbol)} event - The event name.
57319+
* @param {function} [fn] - Only remove the listeners that match this function.
57320+
* @param {*} [context] - Only remove the listeners that have this context.
57321+
* @param {boolean} [once] - Only remove one-time listeners.
57322+
*
57323+
* @return {this} This Layer instance.
57324+
*/
57325+
57326+
/**
57327+
* Remove all listeners, or those of the specified event.
57328+
*
57329+
* @method Phaser.GameObjects.Layer#removeAllListeners
57330+
* @since 3.50.0
57331+
*
57332+
* @param {(string|symbol)} [event] - The event name.
57333+
*
57334+
* @return {this} This Layer instance.
57335+
*/
57336+
5721757337
});
5721857338

5721957339
module.exports = Layer;

dist/phaser-ie9.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)