UNPKG

@runox-game/game-engine

Version:
21 lines (20 loc) 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandValidation = void 0; /** * Class to use as command validation result */ var CommandValidation = /** @class */ (function () { /** * Class to use as command validation result * * @param isValid - true if the command can be executed, false if not * @param error - error message. If isValid is true this field should be undefined */ function CommandValidation(isValid, error) { this.isValid = isValid; this.error = error; } return CommandValidation; }()); exports.CommandValidation = CommandValidation;