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>
2022-02-28 14:29:51 +00:00
* @copyright 2022 Photon Storm Ltd.
2019-05-10 15:15:04 +00:00
* @license {@link https://opensource.org/licenses/MIT|MIT License}
2018-02-12 16:01:20 +00:00
*/
2018-03-30 13:38:58 +00:00
/**
* Scene consts.
2022-02-28 14:29:51 +00:00
*
2018-03-30 13:38:58 +00:00
* @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.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.PENDING
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
2017-01-20 02:28:55 +00:00
PENDING: 0,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.INIT
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
INIT: 1,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.START
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
START: 2,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.LOADING
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
LOADING: 3,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.CREATING
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
CREATING: 4,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.RUNNING
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
RUNNING: 5,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.PAUSED
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
PAUSED: 6,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.SLEEPING
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
SLEEPING: 7,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.SHUTDOWN
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @since 3.0.0
*/
SHUTDOWN: 8,
2018-02-09 18:03:39 +00:00
/**
* Scene state.
2022-02-28 14:29:51 +00:00
*
2018-02-09 18:03:39 +00:00
* @name Phaser.Scenes.DESTROYED
2018-10-09 12:40:00 +00:00
* @readonly
2020-11-23 10:22:13 +00:00
* @type {number}
2018-02-09 18:03:39 +00:00
* @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;