@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
88 lines • 2.03 kB
TypeScript
export default InterfaceCommand;
declare class InterfaceCommand {
/**
*
* @param {InteractionCommand} command
* @param {Object} [style]
* @param {SoundTrack} [actionSound]
* @param {SoundTrack} [hoverSound]
* @param {string} [tooltip]
* @param {string[]} [tags]
* @returns {InterfaceCommand}
*/
static form({ command, style, actionSound, hoverSound, tooltip, tags }: InteractionCommand): InterfaceCommand;
/**
* @param {InteractionCommand} command
* @param {string} [name]
* @param {Object} [style]
* @param {string} [tooltip]
* @param {SoundTrack} [actionSound]
* @param {SoundTrack} [hoverSound]
* @param {string[]} [tags]
* @constructor
*/
constructor({ command, style, tooltip, name, actionSound, hoverSound, tags }: InteractionCommand);
/**
* Name for the command, this is a localization key
* @type {string}
*/
name: string;
/**
*
* @type {InteractionCommand}
*/
command: InteractionCommand;
/**
*
* @type {Object}
*/
style: any;
/**
*
* @type {SoundTrack}
*/
actionSound: SoundTrack;
/**
*
* @type {SoundTrack}
*/
hoverSound: SoundTrack;
/**
* Localization key for the tooltip
* @type {string}
*/
tooltip: string;
/**
*
* @type {string[]}
*/
tags: string[];
/**
*
* @param {string} tag
* @return {boolean}
*/
hasTag(tag: string): boolean;
/**
* @deprecated
* @return {string}
*/
get id(): string;
/**
* @deprecated
* @return {ObservedBoolean|ReactiveExpression}
*/
get enabled(): any;
/**
* @deprecated
* @return {List<String>}
*/
get features(): List<string>;
/**
* @deprecated
* @return {Function}
*/
get action(): Function;
}
import { InteractionCommand } from "./InteractionCommand.js";
//# sourceMappingURL=InterfaceCommand.d.ts.map