UNPKG

duckengine

Version:
15 lines (14 loc) 532 B
import { Duck } from '../..'; import Game from '../game'; import Scene from '../scene'; import Texture from './texture'; import TextureBase from './textureBase'; export default class TextureAtlas extends TextureBase<'image'> { game: Game; scene: Scene; json: Duck.Types.TextureAtlas.JSONSchema; constructor(textureKey: string, jsonKey: string, w: number, h: number, game: Game, scene: Scene); protected validateJSON(): void; protected parseJSON(): void; get(key: string): Texture<'image'> | undefined; }