Example #1
0
        public GDEMissionsData ShallowClone()
        {
            string          newKey   = Guid.NewGuid().ToString();
            GDEMissionsData newClone = new GDEMissionsData(newKey);

            newClone.FirstCard          = FirstCard;
            newClone.Fight              = Fight;
            newClone.MissionLevel       = MissionLevel;
            newClone.MissionName        = MissionName;
            newClone.MissionDescription = MissionDescription;
            newClone.NextCard           = NextCard;
            newClone.AnswerA            = AnswerA;
            newClone.AnswerB            = AnswerB;
            newClone.AnswerC            = AnswerC;
            newClone.AnswerD            = AnswerD;

            return(newClone);
        }
Example #2
0
        public GDEMissionsData DeepClone()
        {
            GDEMissionsData newClone = ShallowClone();

            return(newClone);
        }