Added new ProcessQueue events

This commit is contained in:
Richard Davey 2019-10-02 12:12:37 +01:00
parent ea75c5ca9a
commit f3cc1f82fe
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,21 @@
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Process Queue Add Event.
*
* This event is dispatched by a Process Queue when a new item is successfully moved to its active list.
*
* You will most commonly see this used by a Scene's Update List when a new Game Object has been added.
*
* In that instance, listen to this event from within a Scene using: `this.sys.updateList.on('add', listener)`.
*
* @event Phaser.Structs.Events#PROCESS_QUEUE_ADD
* @since 3.20.0
*
* @param {*} item - The item that was added to the Process Queue.
*/
module.exports = 'add';

View file

@ -0,0 +1,21 @@
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Process Queue Remove Event.
*
* This event is dispatched by a Process Queue when a new item is successfully removed from its active list.
*
* You will most commonly see this used by a Scene's Update List when a Game Object has been removed.
*
* In that instance, listen to this event from within a Scene using: `this.sys.updateList.on('remove', listener)`.
*
* @event Phaser.Structs.Events#PROCESS_QUEUE_REMOVE
* @since 3.20.0
*
* @param {*} item - The item that was removed from the Process Queue.
*/
module.exports = 'remove';

View file

@ -0,0 +1,16 @@
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Structs.Events
*/
module.exports = {
PROCESS_QUEUE_ADD: require('./PROCESS_QUEUE_ADD_EVENT'),
PROCESS_QUEUE_REMOVE: require('./PROCESS_QUEUE_REMOVE_EVENT')
};