2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-03-30 13:38:58 +00:00
|
|
|
/**
|
|
|
|
* Scene consts.
|
|
|
|
*
|
|
|
|
* @ignore
|
|
|
|
*/
|
2017-01-20 02:28:55 +00:00
|
|
|
|
2018-03-30 13:38:58 +00:00
|
|
|
var CONST = {
|
2017-01-20 02:28:55 +00:00
|
|
|
|
2018-02-09 18:03:39 +00:00
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.PENDING
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-20 02:28:55 +00:00
|
|
|
PENDING: 0,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.INIT
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-20 16:22:40 +00:00
|
|
|
INIT: 1,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.START
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-20 16:22:40 +00:00
|
|
|
START: 2,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.LOADING
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-20 16:22:40 +00:00
|
|
|
LOADING: 3,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.CREATING
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-23 02:12:33 +00:00
|
|
|
CREATING: 4,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.RUNNING
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-23 02:12:33 +00:00
|
|
|
RUNNING: 5,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.PAUSED
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-23 02:12:33 +00:00
|
|
|
PAUSED: 6,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.SLEEPING
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-23 02:12:33 +00:00
|
|
|
SLEEPING: 7,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.SHUTDOWN
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-23 02:12:33 +00:00
|
|
|
SHUTDOWN: 8,
|
2018-02-09 18:03:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scene state.
|
|
|
|
*
|
|
|
|
* @name Phaser.Scenes.DESTROYED
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-02-09 18:03:39 +00:00
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-23 02:12:33 +00:00
|
|
|
DESTROYED: 9
|
2017-01-20 02:28:55 +00:00
|
|
|
|
|
|
|
};
|
2018-03-30 13:38:58 +00:00
|
|
|
|
|
|
|
module.exports = CONST;
|