You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/loader/filetypes/AnimationJSONFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ var LoaderEvents = require('../events');
24
24
* @since 3.0.0
25
25
*
26
26
* @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.
28
28
* @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".
29
29
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
30
30
* @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({
113
113
* });
114
114
* ```
115
115
*
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.
117
117
*
118
118
* Once the file has finished loading it will automatically be passed to the global Animation Managers `fromJSON` method.
119
119
* 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({
166
166
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
167
167
* @since 3.0.0
168
168
*
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.
170
170
* @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".
171
171
* @param {string} [dataKey] - When the Animation JSON file loads only this property will be stored in the Cache and used to create animation data.
172
172
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
Copy file name to clipboardExpand all lines: src/loader/filetypes/AtlasJSONFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ var MultiFile = require('../MultiFile.js');
29
29
* @since 3.0.0
30
30
*
31
31
* @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.
33
33
* @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".
34
34
* @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".
35
35
* @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({
153
153
* });
154
154
* ```
155
155
*
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.
157
157
*
158
158
* Instead of passing a URL for the atlas JSON data you can also pass in a well formed JSON object instead.
159
159
*
@@ -205,7 +205,7 @@ var AtlasJSONFile = new Class({
205
205
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
206
206
* @since 3.0.0
207
207
*
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.
209
209
* @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".
210
210
* @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".
211
211
* @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.
Copy file name to clipboardExpand all lines: src/loader/filetypes/AtlasXMLFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ var XMLFile = require('./XMLFile.js');
27
27
* @since 3.7.0
28
28
*
29
29
* @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.
31
31
* @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".
32
32
* @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".
33
33
* @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({
149
149
* });
150
150
* ```
151
151
*
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.
153
153
*
154
154
* Once the atlas has finished loading you can use frames from it as textures for a Game Object by referencing its key:
155
155
*
@@ -199,7 +199,7 @@ var AtlasXMLFile = new Class({
199
199
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
200
200
* @since 3.7.0
201
201
*
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.
203
203
* @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".
204
204
* @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".
205
205
* @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.
Copy file name to clipboardExpand all lines: src/loader/filetypes/AudioFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
27
27
* @since 3.0.0
28
28
*
29
29
* @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.
31
31
* @param {any} [urlConfig] - The absolute or relative URL to load this file from in a config object.
32
32
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
33
33
* @param {AudioContext} [audioContext] - The AudioContext this file will use to process itself.
@@ -198,7 +198,7 @@ AudioFile.getAudioURL = function (game, urls)
198
198
* });
199
199
* ```
200
200
*
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.
202
202
*
203
203
* The URLs can be relative or absolute. If the URLs are relative the `Loader.baseURL` and `Loader.path` values will be prepended to them.
204
204
*
@@ -215,7 +215,7 @@ AudioFile.getAudioURL = function (game, urls)
215
215
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
216
216
* @since 3.0.0
217
217
*
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.
219
219
* @param {(string|string[])} [urls] - The absolute or relative URL to load the audio files from.
220
220
* @param {any} [config] - An object containing an `instances` property for HTML5Audio. Defaults to 1.
221
221
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
Copy file name to clipboardExpand all lines: src/loader/filetypes/BinaryFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
26
26
* @since 3.0.0
27
27
*
28
28
* @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.
30
30
* @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".
31
31
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
32
32
* @param {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.
@@ -121,7 +121,7 @@ var BinaryFile = new Class({
121
121
* });
122
122
* ```
123
123
*
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.
125
125
*
126
126
* Once the file has finished loading you can access it from its Cache using its key:
127
127
*
@@ -148,7 +148,7 @@ var BinaryFile = new Class({
148
148
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
149
149
* @since 3.0.0
150
150
*
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.
152
152
* @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".
153
153
* @param {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.
154
154
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
Copy file name to clipboardExpand all lines: src/loader/filetypes/BitmapFontFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ var XMLFile = require('./XMLFile.js');
28
28
* @since 3.0.0
29
29
*
30
30
* @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.
32
32
* @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".
33
33
* @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".
34
34
* @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({
151
151
* });
152
152
* ```
153
153
*
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.
155
155
*
156
156
* Once the atlas has finished loading you can use key of it when creating a Bitmap Text Game Object:
157
157
*
@@ -199,7 +199,7 @@ var BitmapFontFile = new Class({
199
199
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
200
200
* @since 3.0.0
201
201
*
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.
203
203
* @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".
204
204
* @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".
205
205
* @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.
Copy file name to clipboardExpand all lines: src/loader/filetypes/CSSFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
26
26
* @since 3.17.0
27
27
*
28
28
* @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.
30
30
* @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".
31
31
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
32
32
*/
@@ -116,7 +116,7 @@ var CSSFile = new Class({
116
116
* });
117
117
* ```
118
118
*
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.
120
120
*
121
121
* Once the file has finished loading it will automatically be converted into a style DOM element
122
122
* via `document.createElement('style')`. It will have its `defer` property set to false and then the
@@ -135,7 +135,7 @@ var CSSFile = new Class({
135
135
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
136
136
* @since 3.17.0
137
137
*
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.
139
139
* @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".
140
140
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
Copy file name to clipboardExpand all lines: src/loader/filetypes/GLSLFile.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ var Shader = require('../../display/shader/BaseShader');
27
27
* @since 3.0.0
28
28
*
29
29
* @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.
31
31
* @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".
32
32
* @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.
33
33
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
@@ -350,7 +350,7 @@ var GLSLFile = new Class({
350
350
* });
351
351
* ```
352
352
*
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.
354
354
*
355
355
* Once the file has finished loading you can access it from its Cache using its key:
356
356
*
@@ -377,7 +377,7 @@ var GLSLFile = new Class({
377
377
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
378
378
* @since 3.0.0
379
379
*
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.
381
381
* @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".
382
382
* @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.
383
383
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
0 commit comments