UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

15 lines 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCloseTutorialPopup = void 0; var MoveKind_1 = require("../MoveKind"); var LocalMove_1 = require("./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} */ function isCloseTutorialPopup(move) { return move.kind === MoveKind_1.MoveKind.LocalMove && move.type === LocalMove_1.LocalMoveType.CloseTutorialPopup; } exports.isCloseTutorialPopup = isCloseTutorialPopup; //# sourceMappingURL=CloseTutorialPopup.js.map