Exemple #1
0
        public DeckPlace ToDeckPlace()
        {
            DeckPlace place = new DeckPlace(PlayerItem == null ? null : PlayerItem.ToPlayer(), DeckType.Register(DeckName));

            return(place);
        }
Exemple #2
0
 private void QueuePlayer(Player player)
 {
     int playerId = Game.CurrentGame.Players.IndexOf(player);
     Trace.Assert(playerId >= 0);
     PlayerItem item = new PlayerItem();
     item.id = playerId;
     formatter.Serialize(stream, item);
 }