Exemple #1
0
        public object Clone()
        {
            var clone = new PlayerInfo(Player)
            {
                Received = (EntitiesTaken)Received.Clone(),
                Dealt    = (EntitiesDealt)Dealt.Clone(),
            };

            clone.Dealt.SetPlayerInfo(clone);
            return(clone);
        }
Exemple #2
0
        public object Clone()
        {
            var clone = new PlayerInfo(Player)
            {
                Received        = (EntitiesTaken)Received.Clone(),
                Dealt           = (EntitiesDealt)Dealt.Clone(),
                AbnormalityTime = AbnormalityTime.ToDictionary(i => i.Key, i => (AbnormalityDuration)i.Value.Clone())
            };

            clone.Dealt.SetPlayerInfo(clone);
            return(clone);
        }