API

Interface ISpriteMap

Defines the IDisposable interface in order to be cleanable from resources.

interface ISpriteMap {
    atlasJSON: ISpriteJSONAtlas;
    name: string;
    options: ISpriteMapOptions;
    spriteSheet: Texture;
    dispose(): void;
}

Hierarchy (View Summary)

Implemented by

Index
atlasJSON: ISpriteJSONAtlas

The JSON Array file from a https://www.codeandweb.com/texturepacker export. Or similar structure.

name: string

String name of the SpriteMap.

The parameters to initialize the SpriteMap with.

spriteSheet: Texture

Texture of the SpriteMap.