2020-01-09 18:16:11 +00:00
|
|
|
declare namespace Phaser.Loader.FileTypes {
|
|
|
|
interface SpineFileConfig {
|
2020-01-18 21:14:07 +00:00
|
|
|
key: string;
|
|
|
|
textureURL?: string;
|
|
|
|
textureExtension?: string;
|
|
|
|
textureXhrSettings?: Phaser.Types.Loader.XHRSettingsObject;
|
|
|
|
normalMap?: string;
|
|
|
|
atlasURL?: string;
|
|
|
|
atlasExtension?: string;
|
|
|
|
atlasXhrSettings?: Phaser.Types.Loader.XHRSettingsObject;
|
2020-01-09 18:16:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class SpineFile extends Phaser.Loader.MultiFile {
|
|
|
|
constructor(loader: Phaser.Loader.LoaderPlugin, key: string | Phaser.Loader.FileTypes.SpineFileConfig, jsonURL: string | string[], atlasURL: string, preMultipliedAlpha: boolean, jsonXhrSettings: Phaser.Types.Loader.XHRSettingsObject, atlasXhrSettings: Phaser.Types.Loader.XHRSettingsObject)
|
|
|
|
|
2020-01-18 21:14:07 +00:00
|
|
|
addToCache();
|
2020-01-09 18:16:11 +00:00
|
|
|
}
|
|
|
|
}
|