@gamepark/rules-api
Version:
API to implement the rules of a board game
17 lines (16 loc) • 577 B
TypeScript
import { MoveKind } from '../MoveKind';
import { LocalMoveType } from './LocalMove';
import { MaterialMove } from '../MaterialMove';
/**
* Move object to close the popup during a tutorial
*/
export type CloseTutorialPopup = {
kind: MoveKind.LocalMove;
type: LocalMoveType.CloseTutorialPopup;
};
/**
* 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 declare function isCloseTutorialPopup(move: MaterialMove): move is CloseTutorialPopup;