UNPKG

@gamepark/rules-api

Version:

API to implement the rules of a board game

11 lines 436 B
import { MoveKind } from '../MoveKind'; import { LocalMoveType } from './LocalMove'; /** * Type guard to test if a {@link MaterialMove} is a {@link SetTutorialStep} move * @param move Move to test * @returns true if move is a {@link SetTutorialStep} */ export function isSetTutorialStep(move) { return move.kind === MoveKind.LocalMove && move.type === LocalMoveType.SetTutorialStep; } //# sourceMappingURL=SetTutorialStep.js.map