Example #1
0
            /// <summary>
            /// Ejecuta una acción de una carta del lado servidor
            /// </summary>
            public CardActionResult ExecuteServer(Mesa mesa, Tablero tablero, DataStr data)
            {
                var e          = new Events.EventHelper(tablero, mesa);
                var expression = "var result = new YerbaSoft.Web.Games.Clue.Common.DTO.Clue.Card.CardAction.CardActionResult(tablero, true);" + this.Server + "return result;";
                var result     = (CardActionResult)e.ExecuteAction(expression, data);

                tablero = result?.Tablero ?? tablero;

                return(result);
            }