mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
1dd779efcb
- extends from Phaser.GameObjects.GameObject - implements interfaces for mixins - use Omit for setSize signature conflicts in ComputedSize - use @ts-ignore for state property conflict; spine.AnimationState significantly different than GameObject.state - added semi-colons to better match rest of defintion files
18 lines
771 B
TypeScript
18 lines
771 B
TypeScript
declare namespace Phaser.Loader.FileTypes {
|
|
interface SpineFileConfig {
|
|
key: string;
|
|
textureURL?: string;
|
|
textureExtension?: string;
|
|
textureXhrSettings?: Phaser.Types.Loader.XHRSettingsObject;
|
|
normalMap?: string;
|
|
atlasURL?: string;
|
|
atlasExtension?: string;
|
|
atlasXhrSettings?: Phaser.Types.Loader.XHRSettingsObject;
|
|
}
|
|
|
|
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)
|
|
|
|
addToCache();
|
|
}
|
|
}
|