phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
24 lines (22 loc) • 978 B
JavaScript
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Remove Data Event.
*
* This event is dispatched by a Data Manager when an item is removed from it.
*
* Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for
* the removal of a data item on a Game Object you would use: `sprite.on('removedata', listener)`.
*
* @event Phaser.Data.Events#REMOVE_DATA
* @type {string}
* @since 3.0.0
*
* @param {any} parent - A reference to the object that owns the instance of the Data Manager responsible for this event.
* @param {string} key - The unique key of the data item within the Data Manager.
* @param {any} data - The item that was removed from the Data Manager. This can be of any data type, i.e. a string, boolean, number, object or instance.
*/
module.exports = 'removedata';