Skip to content

Commit 9fe2651

Browse files
committed
FileType Defs update
1 parent 9a28946 commit 9fe2651

27 files changed

Lines changed: 82 additions & 82 deletions

src/loader/filetypes/AnimationJSONFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var LoaderEvents = require('../events');
2424
* @since 3.0.0
2525
*
2626
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
27-
* @param {(string|Phaser.Loader.FileTypes.JSONFileConfig)} key - The key to use for this file, or a file configuration object.
27+
* @param {(string|Phaser.Types.Loader.FileTypes.JSONFileConfig)} key - The key to use for this file, or a file configuration object.
2828
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.json`, i.e. if `key` was "alien" then the URL will be "alien.json".
2929
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
3030
* @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache.
@@ -113,7 +113,7 @@ var AnimationJSONFile = new Class({
113113
* });
114114
* ```
115115
*
116-
* See the documentation for `Phaser.Loader.FileTypes.JSONFileConfig` for more details.
116+
* See the documentation for `Phaser.Types.Loader.FileTypes.JSONFileConfig` for more details.
117117
*
118118
* Once the file has finished loading it will automatically be passed to the global Animation Managers `fromJSON` method.
119119
* This will parse all of the JSON data and create animation data from it. This process happens at the very end
@@ -166,7 +166,7 @@ var AnimationJSONFile = new Class({
166166
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
167167
* @since 3.0.0
168168
*
169-
* @param {(string|Phaser.Loader.FileTypes.JSONFileConfig|Phaser.Loader.FileTypes.JSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
169+
* @param {(string|Phaser.Types.Loader.FileTypes.JSONFileConfig|Phaser.Types.Loader.FileTypes.JSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
170170
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.json`, i.e. if `key` was "alien" then the URL will be "alien.json".
171171
* @param {string} [dataKey] - When the Animation JSON file loads only this property will be stored in the Cache and used to create animation data.
172172
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.

src/loader/filetypes/AtlasJSONFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var MultiFile = require('../MultiFile.js');
2929
* @since 3.0.0
3030
*
3131
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
32-
* @param {(string|Phaser.Loader.FileTypes.AtlasJSONFileConfig)} key - The key to use for this file, or a file configuration object.
32+
* @param {(string|Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig)} key - The key to use for this file, or a file configuration object.
3333
* @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `<key>.png`, i.e. if `key` was "alien" then the URL will be "alien.png".
3434
* @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas json data file from. If undefined or `null` it will be set to `<key>.json`, i.e. if `key` was "alien" then the URL will be "alien.json".
3535
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.
@@ -153,7 +153,7 @@ var AtlasJSONFile = new Class({
153153
* });
154154
* ```
155155
*
156-
* See the documentation for `Phaser.Loader.FileTypes.AtlasJSONFileConfig` for more details.
156+
* See the documentation for `Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig` for more details.
157157
*
158158
* Instead of passing a URL for the atlas JSON data you can also pass in a well formed JSON object instead.
159159
*
@@ -205,7 +205,7 @@ var AtlasJSONFile = new Class({
205205
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
206206
* @since 3.0.0
207207
*
208-
* @param {(string|Phaser.Loader.FileTypes.AtlasJSONFileConfig|Phaser.Loader.FileTypes.AtlasJSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
208+
* @param {(string|Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig|Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
209209
* @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `<key>.png`, i.e. if `key` was "alien" then the URL will be "alien.png".
210210
* @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas json data file from. If undefined or `null` it will be set to `<key>.json`, i.e. if `key` was "alien" then the URL will be "alien.json".
211211
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.

src/loader/filetypes/AtlasXMLFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var XMLFile = require('./XMLFile.js');
2727
* @since 3.7.0
2828
*
2929
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
30-
* @param {(string|Phaser.Loader.FileTypes.AtlasXMLFileConfig)} key - The key to use for this file, or a file configuration object.
30+
* @param {(string|Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig)} key - The key to use for this file, or a file configuration object.
3131
* @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `<key>.png`, i.e. if `key` was "alien" then the URL will be "alien.png".
3232
* @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas xml data file from. If undefined or `null` it will be set to `<key>.xml`, i.e. if `key` was "alien" then the URL will be "alien.xml".
3333
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.
@@ -149,7 +149,7 @@ var AtlasXMLFile = new Class({
149149
* });
150150
* ```
151151
*
152-
* See the documentation for `Phaser.Loader.FileTypes.AtlasXMLFileConfig` for more details.
152+
* See the documentation for `Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig` for more details.
153153
*
154154
* Once the atlas has finished loading you can use frames from it as textures for a Game Object by referencing its key:
155155
*
@@ -199,7 +199,7 @@ var AtlasXMLFile = new Class({
199199
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
200200
* @since 3.7.0
201201
*
202-
* @param {(string|Phaser.Loader.FileTypes.AtlasXMLFileConfig|Phaser.Loader.FileTypes.AtlasXMLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
202+
* @param {(string|Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig|Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
203203
* @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `<key>.png`, i.e. if `key` was "alien" then the URL will be "alien.png".
204204
* @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas xml data file from. If undefined or `null` it will be set to `<key>.xml`, i.e. if `key` was "alien" then the URL will be "alien.xml".
205205
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.

src/loader/filetypes/AudioFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
2727
* @since 3.0.0
2828
*
2929
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
30-
* @param {(string|Phaser.Loader.FileTypes.AudioFileConfig)} key - The key to use for this file, or a file configuration object.
30+
* @param {(string|Phaser.Types.Loader.FileTypes.AudioFileConfig)} key - The key to use for this file, or a file configuration object.
3131
* @param {any} [urlConfig] - The absolute or relative URL to load this file from in a config object.
3232
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
3333
* @param {AudioContext} [audioContext] - The AudioContext this file will use to process itself.
@@ -198,7 +198,7 @@ AudioFile.getAudioURL = function (game, urls)
198198
* });
199199
* ```
200200
*
201-
* See the documentation for `Phaser.Loader.FileTypes.AudioFileConfig` for more details.
201+
* See the documentation for `Phaser.Types.Loader.FileTypes.AudioFileConfig` for more details.
202202
*
203203
* The URLs can be relative or absolute. If the URLs are relative the `Loader.baseURL` and `Loader.path` values will be prepended to them.
204204
*
@@ -215,7 +215,7 @@ AudioFile.getAudioURL = function (game, urls)
215215
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
216216
* @since 3.0.0
217217
*
218-
* @param {(string|Phaser.Loader.FileTypes.AudioFileConfig|Phaser.Loader.FileTypes.AudioFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
218+
* @param {(string|Phaser.Types.Loader.FileTypes.AudioFileConfig|Phaser.Types.Loader.FileTypes.AudioFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
219219
* @param {(string|string[])} [urls] - The absolute or relative URL to load the audio files from.
220220
* @param {any} [config] - An object containing an `instances` property for HTML5Audio. Defaults to 1.
221221
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.

src/loader/filetypes/BinaryFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
2626
* @since 3.0.0
2727
*
2828
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
29-
* @param {(string|Phaser.Loader.FileTypes.BinaryFileConfig)} key - The key to use for this file, or a file configuration object.
29+
* @param {(string|Phaser.Types.Loader.FileTypes.BinaryFileConfig)} key - The key to use for this file, or a file configuration object.
3030
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.bin`, i.e. if `key` was "alien" then the URL will be "alien.bin".
3131
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
3232
* @param {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.
@@ -121,7 +121,7 @@ var BinaryFile = new Class({
121121
* });
122122
* ```
123123
*
124-
* See the documentation for `Phaser.Loader.FileTypes.BinaryFileConfig` for more details.
124+
* See the documentation for `Phaser.Types.Loader.FileTypes.BinaryFileConfig` for more details.
125125
*
126126
* Once the file has finished loading you can access it from its Cache using its key:
127127
*
@@ -148,7 +148,7 @@ var BinaryFile = new Class({
148148
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
149149
* @since 3.0.0
150150
*
151-
* @param {(string|Phaser.Loader.FileTypes.BinaryFileConfig|Phaser.Loader.FileTypes.BinaryFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
151+
* @param {(string|Phaser.Types.Loader.FileTypes.BinaryFileConfig|Phaser.Types.Loader.FileTypes.BinaryFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
152152
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.bin`, i.e. if `key` was "alien" then the URL will be "alien.bin".
153153
* @param {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.
154154
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.

src/loader/filetypes/BitmapFontFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var XMLFile = require('./XMLFile.js');
2828
* @since 3.0.0
2929
*
3030
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
31-
* @param {(string|Phaser.Loader.FileTypes.BitmapFontFileConfig)} key - The key to use for this file, or a file configuration object.
31+
* @param {(string|Phaser.Types.Loader.FileTypes.BitmapFontFileConfig)} key - The key to use for this file, or a file configuration object.
3232
* @param {string|string[]} [textureURL] - The absolute or relative URL to load the font image file from. If undefined or `null` it will be set to `<key>.png`, i.e. if `key` was "alien" then the URL will be "alien.png".
3333
* @param {string} [fontDataURL] - The absolute or relative URL to load the font xml data file from. If undefined or `null` it will be set to `<key>.xml`, i.e. if `key` was "alien" then the URL will be "alien.xml".
3434
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the font image file. Used in replacement of the Loaders default XHR Settings.
@@ -151,7 +151,7 @@ var BitmapFontFile = new Class({
151151
* });
152152
* ```
153153
*
154-
* See the documentation for `Phaser.Loader.FileTypes.BitmapFontFileConfig` for more details.
154+
* See the documentation for `Phaser.Types.Loader.FileTypes.BitmapFontFileConfig` for more details.
155155
*
156156
* Once the atlas has finished loading you can use key of it when creating a Bitmap Text Game Object:
157157
*
@@ -199,7 +199,7 @@ var BitmapFontFile = new Class({
199199
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
200200
* @since 3.0.0
201201
*
202-
* @param {(string|Phaser.Loader.FileTypes.BitmapFontFileConfig|Phaser.Loader.FileTypes.BitmapFontFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
202+
* @param {(string|Phaser.Types.Loader.FileTypes.BitmapFontFileConfig|Phaser.Types.Loader.FileTypes.BitmapFontFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
203203
* @param {string|string[]} [textureURL] - The absolute or relative URL to load the font image file from. If undefined or `null` it will be set to `<key>.png`, i.e. if `key` was "alien" then the URL will be "alien.png".
204204
* @param {string} [fontDataURL] - The absolute or relative URL to load the font xml data file from. If undefined or `null` it will be set to `<key>.xml`, i.e. if `key` was "alien" then the URL will be "alien.xml".
205205
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the font image file. Used in replacement of the Loaders default XHR Settings.

src/loader/filetypes/CSSFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
2626
* @since 3.17.0
2727
*
2828
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
29-
* @param {(string|Phaser.Loader.FileTypes.CSSFileConfig)} key - The key to use for this file, or a file configuration object.
29+
* @param {(string|Phaser.Types.Loader.FileTypes.CSSFileConfig)} key - The key to use for this file, or a file configuration object.
3030
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.js`, i.e. if `key` was "alien" then the URL will be "alien.js".
3131
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
3232
*/
@@ -116,7 +116,7 @@ var CSSFile = new Class({
116116
* });
117117
* ```
118118
*
119-
* See the documentation for `Phaser.Loader.FileTypes.CSSFileConfig` for more details.
119+
* See the documentation for `Phaser.Types.Loader.FileTypes.CSSFileConfig` for more details.
120120
*
121121
* Once the file has finished loading it will automatically be converted into a style DOM element
122122
* via `document.createElement('style')`. It will have its `defer` property set to false and then the
@@ -135,7 +135,7 @@ var CSSFile = new Class({
135135
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
136136
* @since 3.17.0
137137
*
138-
* @param {(string|Phaser.Loader.FileTypes.CSSFileConfig|Phaser.Loader.FileTypes.CSSFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
138+
* @param {(string|Phaser.Types.Loader.FileTypes.CSSFileConfig|Phaser.Types.Loader.FileTypes.CSSFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
139139
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.css`, i.e. if `key` was "alien" then the URL will be "alien.css".
140140
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
141141
*

src/loader/filetypes/GLSLFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var Shader = require('../../display/shader/BaseShader');
2727
* @since 3.0.0
2828
*
2929
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
30-
* @param {(string|Phaser.Loader.FileTypes.TextFileConfig)} key - The key to use for this file, or a file configuration object.
30+
* @param {(string|Phaser.Types.Loader.FileTypes.GLSLFileConfig)} key - The key to use for this file, or a file configuration object.
3131
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.txt`, i.e. if `key` was "alien" then the URL will be "alien.txt".
3232
* @param {string} [shaderType='fragment'] - The type of shader. Either `fragment` for a fragment shader, or `vertex` for a vertex shader. This is ignored if you load a shader bundle.
3333
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
@@ -350,7 +350,7 @@ var GLSLFile = new Class({
350350
* });
351351
* ```
352352
*
353-
* See the documentation for `Phaser.Loader.FileTypes.GLSLFileConfig` for more details.
353+
* See the documentation for `Phaser.Types.Loader.FileTypes.GLSLFileConfig` for more details.
354354
*
355355
* Once the file has finished loading you can access it from its Cache using its key:
356356
*
@@ -377,7 +377,7 @@ var GLSLFile = new Class({
377377
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
378378
* @since 3.0.0
379379
*
380-
* @param {(string|Phaser.Loader.FileTypes.GLSLFileConfig|Phaser.Loader.FileTypes.GLSLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
380+
* @param {(string|Phaser.Types.Loader.FileTypes.GLSLFileConfig|Phaser.Types.Loader.FileTypes.GLSLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
381381
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.glsl`, i.e. if `key` was "alien" then the URL will be "alien.glsl".
382382
* @param {string} [shaderType='fragment'] - The type of shader. Either `fragment` for a fragment shader, or `vertex` for a vertex shader. This is ignored if you load a shader bundle.
383383
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.

src/loader/filetypes/HTML5AudioFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
2626
* @since 3.0.0
2727
*
2828
* @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.
29-
* @param {(string|Phaser.Loader.FileTypes.AudioFileConfig)} key - The key to use for this file, or a file configuration object.
29+
* @param {(string|Phaser.Types.Loader.FileTypes.AudioFileConfig)} key - The key to use for this file, or a file configuration object.
3030
* @param {string} [urlConfig] - The absolute or relative URL to load this file from.
3131
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
3232
*/

0 commit comments

Comments
 (0)