@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
39 lines • 916 B
TypeScript
export class InteractionCommand {
/**
*
* @param {string} id
* @param {ObservedBoolean|ReactiveExpression} [enabled]
* @param {string[]} [features]
* @param {function} action
*/
constructor({ id, enabled, features, action }: string);
/**
*
* @type {string}
*/
id: string;
/**
*
* @type {ObservedBoolean|ReactiveExpression}
*/
enabled: ObservedBoolean | ReactiveExpression;
/**
*
* @type {List<String>}
*/
features: List<string>;
/**
*
* @type {Function}
*/
action: Function;
/**
*
* @param {string} feature
* @param {boolean} value
*/
setFeature(feature: string, value: boolean): void;
}
import ObservedBoolean from "../../core/model/ObservedBoolean.js";
import List from "../../core/collection/list/List.js";
//# sourceMappingURL=InteractionCommand.d.ts.map