public void SendCardsAnswer(Connection c, Common.GameUtils.Deck _deck) { Packet07Deck pack = new Packet07Deck() { Descr = "Here is your Cards :", Deck = (Common.GameUtils.Deck)_deck }; c.SendObject <Packet07Deck>("ShowCards", pack); }
public void SendPlayingCardRequest(Connection c, Common.GameUtils.Deck _deck, Common.GameUtils.Round _deckRound) { List <Common.GameUtils.Card> ca = new List <Common.GameUtils.Card>(_deckRound.cards); Packet07Deck pack = new Packet07Deck() { Descr = "You have to Play card", Deck = _deck, Deck2 = ca }; try { c.SendObject <Packet07Deck>("PlayingCardRequest", pack); } catch (Exception e) { Console.WriteLine("Exception : " + e.ToString()); } }