@runox-game/game-engine
Version:
RunoX game engine
15 lines (14 loc) • 478 B
TypeScript
/**
* Class to use as command validation result
*/
export declare class CommandValidation {
readonly isValid: boolean;
readonly error?: string | undefined;
/**
* 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
*/
constructor(isValid: boolean, error?: string | undefined);
}