public static GameData Run( this IStepHandler <CreateBoardStep> handler, GameData data) { var step = new CreateBoardStep(data); return(handler.ValidateAndRun(step)); }
public static GameData Run( this IStepHandler <CoinTossStep> handler, GameData data, string hostDispay, string challengerDisplay) { var step = new CoinTossStep(data, hostDispay, challengerDisplay); return(handler.ValidateAndRun(step)); }
public static GameData Run( this IStepHandler <PlayCardStep> handler, GameData data, string card, int tileId, bool isHost) { var step = new PlayCardStep(data, card, tileId, isHost); return(handler.ValidateAndRun(step)); }
public static GameData Run( this IStepHandler <SelectCardsStep> handler, GameData data, bool isHost, string playerDisplay, IEnumerable <string> cards) { var step = new SelectCardsStep(data, isHost, playerDisplay, cards); return(handler.ValidateAndRun(step)); }