phaser/src/scene/const.js

118 lines
1.8 KiB
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
2019-01-15 16:20:22 +00:00
* @copyright 2019 Photon Storm Ltd.
2018-02-12 16:01:20 +00:00
* @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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
DESTROYED: 9
2017-01-20 02:28:55 +00:00
};
2018-03-30 13:38:58 +00:00
module.exports = CONST;