@gamepark/rules-api
Version:
API to implement the rules of a board game
11 lines • 451 B
JavaScript
import { MoveKind } from '../MoveKind';
import { LocalMoveType } from './LocalMove';
/**
* Type guard to test if a {@link MaterialMove} is a {@link CloseTutorialPopup} move
* @param move Move to test
* @returns true if move is a {@link CloseTutorialPopup}
*/
export function isCloseTutorialPopup(move) {
return move.kind === MoveKind.LocalMove && move.type === LocalMoveType.CloseTutorialPopup;
}
//# sourceMappingURL=CloseTutorialPopup.js.map