@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
31 lines • 749 B
TypeScript
/**
* Base abstract class for any managed resource such as a texture of a buffer
*/
export class ResourceDescriptor {
/**
* Resource type, useful for debugging and UI
* Not guaranteed to be unique
* @return {string}
*/
get type(): string;
/**
* For fast type checks
* @return {boolean}
*/
get isResourceDescriptor(): boolean;
hash(): number;
/**
* @template T {ResourceDescriptor}
* @param {T} other
* @returns {boolean}
*/
equals<T>(other: T): boolean;
/**
*
* @param {ResourceDescriptor} other
* @return {number}
*/
compare(other: ResourceDescriptor): number;
toString(): string;
}
//# sourceMappingURL=ResourceDescriptor.d.ts.map