Skip to content

Commit 9a28946

Browse files
committed
FileType Types
1 parent ae1b5a6 commit 9a28946

57 files changed

Lines changed: 278 additions & 298 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/loader/filetypes/AtlasJSONFile.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
1212
var JSONFile = require('./JSONFile.js');
1313
var MultiFile = require('../MultiFile.js');
1414

15-
/**
16-
* @typedef {object} Phaser.Loader.FileTypes.AtlasJSONFileConfig
17-
*
18-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Texture Manager.
19-
* @property {string} [textureURL] - The absolute or relative URL to load the texture image file from.
20-
* @property {string} [textureExtension='png'] - The default file extension to use for the image texture if no url is provided.
21-
* @property {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - Extra XHR Settings specifically for the texture image file.
22-
* @property {string} [normalMap] - The filename of an associated normal map. It uses the same path and url to load as the texture image.
23-
* @property {string} [atlasURL] - The absolute or relative URL to load the atlas json file from. Or a well formed JSON object to use instead.
24-
* @property {string} [atlasExtension='json'] - The default file extension to use for the atlas json if no url is provided.
25-
* @property {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - Extra XHR Settings specifically for the atlas json file.
26-
*/
27-
2815
/**
2916
* @classdesc
3017
* A single JSON based Texture Atlas File suitable for loading by the Loader.

src/loader/filetypes/AtlasXMLFile.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
1212
var MultiFile = require('../MultiFile.js');
1313
var XMLFile = require('./XMLFile.js');
1414

15-
/**
16-
* @typedef {object} Phaser.Loader.FileTypes.AtlasXMLFileConfig
17-
*
18-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Texture Manager.
19-
* @property {string} [textureURL] - The absolute or relative URL to load the texture image file from.
20-
* @property {string} [textureExtension='png'] - The default file extension to use for the image texture if no url is provided.
21-
* @property {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - Extra XHR Settings specifically for the texture image file.
22-
* @property {string} [normalMap] - The filename of an associated normal map. It uses the same path and url to load as the texture image.
23-
* @property {string} [atlasURL] - The absolute or relative URL to load the atlas xml file from.
24-
* @property {string} [atlasExtension='xml'] - The default file extension to use for the atlas xml if no url is provided.
25-
* @property {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - Extra XHR Settings specifically for the atlas xml file.
26-
*/
27-
2815
/**
2916
* @classdesc
3017
* A single XML based Texture Atlas File suitable for loading by the Loader.

src/loader/filetypes/AudioFile.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ var GetFastValue = require('../../utils/object/GetFastValue');
1212
var HTML5AudioFile = require('./HTML5AudioFile');
1313
var IsPlainObject = require('../../utils/object/IsPlainObject');
1414

15-
/**
16-
* @typedef {object} Phaser.Loader.FileTypes.AudioFileConfig
17-
*
18-
* @property {string} key - The key of the file. Must be unique within the Loader and Audio Cache.
19-
* @property {string} [urlConfig] - The absolute or relative URL to load the file from.
20-
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
21-
* @property {AudioContext} [audioContext] - The AudioContext this file will use to process itself.
22-
*/
23-
2415
/**
2516
* @classdesc
2617
* A single Audio File suitable for loading by the Loader.

src/loader/filetypes/AudioSpriteFile.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ var IsPlainObject = require('../../utils/object/IsPlainObject');
1212
var JSONFile = require('./JSONFile.js');
1313
var MultiFile = require('../MultiFile.js');
1414

15-
/**
16-
* @typedef {object} Phaser.Loader.FileTypes.AudioSpriteFileConfig
17-
*
18-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Audio Cache.
19-
* @property {string} jsonURL - The absolute or relative URL to load the json file from. Or a well formed JSON object to use instead.
20-
* @property {Phaser.Types.Loader.XHRSettingsObject} [jsonXhrSettings] - Extra XHR Settings specifically for the json file.
21-
* @property {{(string|string[])}} [audioURL] - The absolute or relative URL to load the audio file from.
22-
* @property {any} [audioConfig] - The audio configuration options.
23-
* @property {Phaser.Types.Loader.XHRSettingsObject} [audioXhrSettings] - Extra XHR Settings specifically for the audio file.
24-
*/
25-
2615
/**
2716
* @classdesc
2817
* An Audio Sprite File suitable for loading by the Loader.

src/loader/filetypes/BinaryFile.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ var FileTypesManager = require('../FileTypesManager');
1111
var GetFastValue = require('../../utils/object/GetFastValue');
1212
var IsPlainObject = require('../../utils/object/IsPlainObject');
1313

14-
/**
15-
* @typedef {object} Phaser.Loader.FileTypes.BinaryFileConfig
16-
*
17-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Binary Cache.
18-
* @property {string} [url] - The absolute or relative URL to load the file from.
19-
* @property {string} [extension='bin'] - The default file extension to use if no url is provided.
20-
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
21-
* @property {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.
22-
*/
23-
2414
/**
2515
* @classdesc
2616
* A single Binary File suitable for loading by the Loader.

src/loader/filetypes/BitmapFontFile.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@ var MultiFile = require('../MultiFile.js');
1313
var ParseXMLBitmapFont = require('../../gameobjects/bitmaptext/ParseXMLBitmapFont.js');
1414
var XMLFile = require('./XMLFile.js');
1515

16-
/**
17-
* @typedef {object} Phaser.Loader.FileTypes.BitmapFontFileConfig
18-
*
19-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Texture Manager.
20-
* @property {string} [textureURL] - The absolute or relative URL to load the texture image file from.
21-
* @property {string} [textureExtension='png'] - The default file extension to use for the image texture if no url is provided.
22-
* @property {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - Extra XHR Settings specifically for the texture image file.
23-
* @property {string} [normalMap] - The filename of an associated normal map. It uses the same path and url to load as the texture image.
24-
* @property {string} [fontDataURL] - The absolute or relative URL to load the font data xml file from.
25-
* @property {string} [fontDataExtension='xml'] - The default file extension to use for the font data xml if no url is provided.
26-
* @property {Phaser.Types.Loader.XHRSettingsObject} [fontDataXhrSettings] - Extra XHR Settings specifically for the font data xml file.
27-
*/
28-
2916
/**
3017
* @classdesc
3118
* A single Bitmap Font based File suitable for loading by the Loader.

src/loader/filetypes/CSSFile.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ var FileTypesManager = require('../FileTypesManager');
1111
var GetFastValue = require('../../utils/object/GetFastValue');
1212
var IsPlainObject = require('../../utils/object/IsPlainObject');
1313

14-
/**
15-
* @typedef {object} Phaser.Loader.FileTypes.CSSFileConfig
16-
*
17-
* @property {string} key - The key of the file. Must be unique within the Loader.
18-
* @property {string} [url] - The absolute or relative URL to load the file from.
19-
* @property {string} [extension='js'] - The default file extension to use if no url is provided.
20-
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
21-
*/
22-
2314
/**
2415
* @classdesc
2516
* A single CSS File suitable for loading by the Loader.

src/loader/filetypes/GLSLFile.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ var GetFastValue = require('../../utils/object/GetFastValue');
1212
var IsPlainObject = require('../../utils/object/IsPlainObject');
1313
var Shader = require('../../display/shader/BaseShader');
1414

15-
/**
16-
* @typedef {object} Phaser.Loader.FileTypes.GLSLFileConfig
17-
*
18-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Text Cache.
19-
* @property {string} [url] - The absolute or relative URL to load the file from.
20-
* @property {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.
21-
* @property {string} [extension='glsl'] - The default file extension to use if no url is provided.
22-
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
23-
*/
24-
2515
/**
2616
* @classdesc
2717
* A single GLSL File suitable for loading by the Loader.

src/loader/filetypes/HTMLFile.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ var FileTypesManager = require('../FileTypesManager');
1111
var GetFastValue = require('../../utils/object/GetFastValue');
1212
var IsPlainObject = require('../../utils/object/IsPlainObject');
1313

14-
/**
15-
* @typedef {object} Phaser.Loader.FileTypes.HTMLFileConfig
16-
*
17-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Text Cache.
18-
* @property {string} [url] - The absolute or relative URL to load the file from.
19-
* @property {string} [extension='html'] - The default file extension to use if no url is provided.
20-
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
21-
*/
22-
2314
/**
2415
* @classdesc
2516
* A single HTML File suitable for loading by the Loader.

src/loader/filetypes/HTMLTextureFile.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@ var FileTypesManager = require('../FileTypesManager');
1111
var GetFastValue = require('../../utils/object/GetFastValue');
1212
var IsPlainObject = require('../../utils/object/IsPlainObject');
1313

14-
/**
15-
* @typedef {object} Phaser.Loader.FileTypes.HTMLTextureFileConfig
16-
*
17-
* @property {string} key - The key of the file. Must be unique within both the Loader and the Texture Manager.
18-
* @property {string} [url] - The absolute or relative URL to load the file from.
19-
* @property {string} [extension='html'] - The default file extension to use if no url is provided.
20-
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
21-
* @property {integer} [width=512] - The width of the texture the HTML will be rendered to.
22-
* @property {integer} [height=512] - The height of the texture the HTML will be rendered to.
23-
*/
24-
2514
/**
2615
* @classdesc
2716
* A single HTML File suitable for loading by the Loader.

0 commit comments

Comments
 (0)