2018-02-12 16:01:20 +00:00
|
|
|
/**
|
2024-02-19 17:12:18 +00:00
|
|
|
* @author Richard Davey <rich@phaser.io>
|
|
|
|
* @copyright 2013-2024 Phaser Studio Inc.
|
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
|
|
|
*/
|
|
|
|
|
2016-11-30 17:16:45 +00:00
|
|
|
var FILE_CONST = {
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
|
|
|
* The Loader is idle.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.LOADER_IDLE
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2016-12-06 15:15:42 +00:00
|
|
|
LOADER_IDLE: 0,
|
2018-02-08 17:00:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Loader is actively loading.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.LOADER_LOADING
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2016-12-06 15:15:42 +00:00
|
|
|
LOADER_LOADING: 1,
|
2018-02-08 17:00:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Loader is processing files is has loaded.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.LOADER_PROCESSING
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2016-12-06 15:15:42 +00:00
|
|
|
LOADER_PROCESSING: 2,
|
2018-02-08 17:00:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Loader has completed loading and processing.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.LOADER_COMPLETE
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2016-12-06 15:15:42 +00:00
|
|
|
LOADER_COMPLETE: 3,
|
2018-02-08 17:00:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Loader is shutting down.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.LOADER_SHUTDOWN
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
LOADER_SHUTDOWN: 4,
|
2018-02-08 17:00:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Loader has been destroyed.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.LOADER_DESTROYED
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
LOADER_DESTROYED: 5,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
2021-11-03 18:50:14 +00:00
|
|
|
* File is in the load queue but not yet started.
|
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_PENDING
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_PENDING: 10,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
|
|
|
* File has been started to load by the loader (onLoad called)
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_LOADING
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_LOADING: 11,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
2021-11-03 18:50:14 +00:00
|
|
|
* File has loaded successfully, awaiting processing.
|
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_LOADED
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_LOADED: 12,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
2021-11-03 18:50:14 +00:00
|
|
|
* File failed to load.
|
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_FAILED
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_FAILED: 13,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
|
|
|
* File is being processed (onProcess callback)
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_PROCESSING
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_PROCESSING: 14,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
|
|
|
* The File has errored somehow during processing.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_ERRORED
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_ERRORED: 16,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
|
|
|
* File has finished processing.
|
2021-11-03 18:50:14 +00:00
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_COMPLETE
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_COMPLETE: 17,
|
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
2021-11-03 18:50:14 +00:00
|
|
|
* File has been destroyed.
|
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_DESTROYED
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2018-01-19 14:54:50 +00:00
|
|
|
FILE_DESTROYED: 18,
|
2016-12-07 13:34:21 +00:00
|
|
|
|
2018-02-08 17:00:14 +00:00
|
|
|
/**
|
2021-11-03 18:50:14 +00:00
|
|
|
* File was populated from local data and doesn't need an HTTP request.
|
|
|
|
*
|
2018-02-08 17:00:14 +00:00
|
|
|
* @name Phaser.Loader.FILE_POPULATED
|
2020-11-23 10:22:13 +00:00
|
|
|
* @type {number}
|
2018-02-08 17:00:14 +00:00
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2021-11-03 18:50:14 +00:00
|
|
|
FILE_POPULATED: 19,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* File is pending being destroyed.
|
|
|
|
*
|
|
|
|
* @name Phaser.Loader.FILE_PENDING_DESTROY
|
|
|
|
* @type {number}
|
|
|
|
* @since 3.60.0
|
|
|
|
*/
|
|
|
|
FILE_PENDING_DESTROY: 20
|
2016-11-30 17:16:45 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = FILE_CONST;
|