phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
26 lines (24 loc) • 1.06 kB
JavaScript
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Scene Systems Shutdown Event.
*
* This event is dispatched by a Scene during the Scene Systems shutdown process.
*
* Listen to it from a Scene using `this.events.on('shutdown', listener)`.
*
* You should free-up any resources that may be in use by your Scene in this event handler, on the understanding
* that the Scene may, at any time, become active again. A shutdown Scene is not 'destroyed', it's simply not
* currently active. Use the [DESTROY]{@linkcode Phaser.Scenes.Events#event:DESTROY} event to completely clear resources.
*
* @event Phaser.Scenes.Events#SHUTDOWN
* @type {string}
* @since 3.0.0
*
* @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.
* @param {any} [data] - An optional data object that was passed to this Scene when it was shutdown.
*/
module.exports = 'shutdown';