Esempio n. 1
0
        public GDETacoData ShallowClone()
        {
            string      newKey   = Guid.NewGuid().ToString();
            GDETacoData newClone = new GDETacoData(newKey);

            newClone.hideHair        = hideHair;
            newClone.requireWeight   = requireWeight;
            newClone.healthPoint     = healthPoint;
            newClone.atkBonus        = atkBonus;
            newClone.defBonus        = defBonus;
            newClone.dmgClampMin     = dmgClampMin;
            newClone.dmgClampMax     = dmgClampMax;
            newClone.dmgCount        = dmgCount;
            newClone.population      = population;
            newClone.speedBonus      = speedBonus;
            newClone.visionRange     = visionRange;
            newClone.atkRange        = atkRange;
            newClone.atkSpeed        = atkSpeed;
            newClone.weightRobRate   = weightRobRate;
            newClone.nickName        = nickName;
            newClone.raceName        = raceName;
            newClone.ownerName       = ownerName;
            newClone.shapePath       = shapePath;
            newClone.leftWeaponData  = leftWeaponData;
            newClone.rightWeaponData = rightWeaponData;
            newClone.animPath        = animPath;
            newClone.fsmPath         = fsmPath;

            return(newClone);
        }
Esempio n. 2
0
        public GDETacoData DeepClone()
        {
            GDETacoData newClone = ShallowClone();

            return(newClone);
        }