public void Step(ref HandPiecePressStepState token, int condition) { HandPieceEV handPiece = handService.FindHandPiece(token.HandPieceEntityId, entitiesDB); bool isClicked = !handPiece.Highlight.IsHighlighted; handService.HighlightHandPiece(ref handPiece, isClicked, entitiesDB); }
public void Step(ref ForcedRearrangementStepState token, int condition) { TurnEV currentTurn = turnService.GetCurrentTurnEV(entitiesDB); turnService.SetForcedRearrangementStatus(currentTurn, true, entitiesDB); HandPieceEV handPiece = handService.FindHandPiece( token.PieceToRearrange.Value.Piece.Front, token.PieceToRearrange.Value.Piece.Back, currentTurn.TurnPlayer.PlayerColor, entitiesDB); handService.HighlightHandPiece(ref handPiece, true, entitiesDB); }