2019-01-17 15:47:27 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2019 Photon Storm Ltd.
|
2019-05-10 15:15:04 +00:00
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
2019-01-17 15:47:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @typedef {object} Phaser.Physics.Matter.Events.SleepStartEvent
|
|
|
|
*
|
|
|
|
* @property {any} source - The source object of the event.
|
|
|
|
* @property {string} name - The name of the event.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Matter Physics Sleep Start Event.
|
|
|
|
*
|
|
|
|
* This event is dispatched by a Matter Physics World instance when a Body goes to sleep.
|
|
|
|
*
|
|
|
|
* Listen to it from a Scene using: `this.matter.world.on('sleepstart', listener)`.
|
|
|
|
*
|
|
|
|
* @event Phaser.Physics.Matter.Events#SLEEP_START
|
2019-02-12 11:37:58 +00:00
|
|
|
* @since 3.0.0
|
2019-01-17 15:47:27 +00:00
|
|
|
*
|
|
|
|
* @param {Phaser.Physics.Matter.Events.SleepStartEvent} event - The Sleep Event object.
|
|
|
|
* @param {MatterJS.Body} body - The body that has gone to sleep.
|
|
|
|
*/
|
|
|
|
module.exports = 'sleepstart';
|