mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Added linkFile support back in, so images can bind to other data.
This commit is contained in:
parent
97dd683ea1
commit
9b7d6d0254
1 changed files with 20 additions and 1 deletions
|
@ -223,9 +223,27 @@ var File = new Class({
|
||||||
*
|
*
|
||||||
* @name Phaser.Loader.File#multiFile
|
* @name Phaser.Loader.File#multiFile
|
||||||
* @type {?Phaser.Loader.MultiFile}
|
* @type {?Phaser.Loader.MultiFile}
|
||||||
* @since 3.0.0
|
* @since 3.7.0
|
||||||
*/
|
*/
|
||||||
this.multiFile;
|
this.multiFile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Does this file have an associated linked file? Such as an image and a normal map.
|
||||||
|
* Atlases and Bitmap Fonts use the multiFile, because those files need loading together but aren't
|
||||||
|
* actually bound by data, where-as a linkFile is.
|
||||||
|
*
|
||||||
|
* @name Phaser.Loader.File#linkFile
|
||||||
|
* @type {?Phaser.Loader.File}
|
||||||
|
* @since 3.7.0
|
||||||
|
*/
|
||||||
|
this.linkFile;
|
||||||
|
},
|
||||||
|
|
||||||
|
setLink: function (fileB)
|
||||||
|
{
|
||||||
|
this.linkFile = fileB;
|
||||||
|
|
||||||
|
fileB.linkFile = this;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -451,6 +469,7 @@ var File = new Class({
|
||||||
this.cache = null;
|
this.cache = null;
|
||||||
this.xhrSettings = null;
|
this.xhrSettings = null;
|
||||||
this.multiFile = null;
|
this.multiFile = null;
|
||||||
|
this.linkFile = null;
|
||||||
this.data = null;
|
this.data = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue