@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
39 lines • 806 B
TypeScript
/**
* Definition of a single asset to be loaded
*/
export class AssetLoadSpec {
/**
*
* @param data
* @return {AssetLoadSpec}
*/
static fromJSON(data: any): AssetLoadSpec;
/**
* Path to the asset
* @type {String}
*/
uri: string;
/**
* Type of the asset
* @type {String}
*/
type: string;
/**
*
* @type {number|AssetLevel}
*/
level: number | AssetLevel;
/**
* Priority within the level group (see {@link level})
* @type {number}
*/
priority: number;
fromJSON({ uri, type, level, priority }: {
uri: any;
type: any;
level?: number;
priority?: number;
}): void;
}
import AssetLevel from "./AssetLevel.js";
//# sourceMappingURL=AssetLoadSpec.d.ts.map