@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
29 lines • 715 B
TypeScript
/**
* Localized tooltip. {@link TooltipComponent.key} is used to look up the localized text.
* Requires {@link TooltipComponentSystem} to be registered in the {@link EntityManager}.
*/
export class TooltipComponent {
static fromJSON(json: any): TooltipComponent;
/**
* Localization key.
* @type {string}
*/
key: string;
hash(): number;
/**
*
* @param {TooltipComponent} other
* @return {boolean}
*/
equals(other: TooltipComponent): boolean;
toJSON(): {
key: string;
};
fromJSON({ key }: {
key: any;
}): void;
}
export namespace TooltipComponent {
let typeName: string;
}
//# sourceMappingURL=TooltipComponent.d.ts.map