예제 #1
0
        public GDEMonstersData ShallowClone()
        {
            string          newKey   = Guid.NewGuid().ToString();
            GDEMonstersData newClone = new GDEMonstersData(newKey);

            newClone.HealthPoints           = HealthPoints;
            newClone.BasicMeleeLow          = BasicMeleeLow;
            newClone.BasicDistanceLow       = BasicDistanceLow;
            newClone.BasicMagicLow          = BasicMagicLow;
            newClone.SpecialAbilityAdditive = SpecialAbilityAdditive;
            newClone.MonsterName            = MonsterName;
            newClone.MonsterType            = MonsterType;
            newClone.MonsterDescription     = MonsterDescription;
            newClone.DifficultyLevel        = DifficultyLevel;
            newClone.SpecialAbility         = SpecialAbility;

            return(newClone);
        }
예제 #2
0
        public GDEMonstersData DeepClone()
        {
            GDEMonstersData newClone = ShallowClone();

            return(newClone);
        }