private void OnConfirmCards(Player player, JToken data) { if (player.Hand.Count > 12) { this.UpdateHand(player); this.Message(this.GetMatch(player), "You have too many cards (" + (player.Hand.Cards.Count) + "), please discard"); this.matches[player].Log("Rejected play by " + player.Username + " too many cards in hand(" + (player.Hand.Cards.Count) + ")"); return; } InteractiveStoryCard story = this.matches[player].CurrentStory as InteractiveStoryCard; story.AddPlayed(player); this.UpdateHand(player); this.UpdatePlayerArea(player); }
private void OnParticipationResponse(Player player, JToken data) { InteractiveStoryCard story = this.matches[player].CurrentStory as InteractiveStoryCard; story.ParticipationResponse(player, (bool)data["participating"]); }