Пример #1
0
        public GDEHeroData ShallowClone()
        {
            string      newKey   = Guid.NewGuid().ToString();
            GDEHeroData newClone = new GDEHeroData(newKey);

            newClone.ID                    = ID;
            newClone.MaxHP                 = MaxHP;
            newClone.MaxShieldVal          = MaxShieldVal;
            newClone.ShieldRestoreVec      = ShieldRestoreVec;
            newClone.MoveVec               = MoveVec;
            newClone.HurtProtect           = HurtProtect;
            newClone.Mass                  = Mass;
            newClone.ShieldRestoreInterval = ShieldRestoreInterval;
            newClone.ShieldRestoreBreak    = ShieldRestoreBreak;
            newClone.PrefabPath            = PrefabPath;

            return(newClone);
        }
Пример #2
0
        public GDEHeroData ShallowClone()
        {
            string      newKey   = Guid.NewGuid().ToString();
            GDEHeroData newClone = new GDEHeroData(newKey);

            newClone.locked              = locked;
            newClone.lv                  = lv;
            newClone.status              = status;
            newClone.hashCode            = hashCode;
            newClone.battleForce         = battleForce;
            newClone.hpPropAdd           = hpPropAdd;
            newClone.exp                 = exp;
            newClone.mpPropAdd           = mpPropAdd;
            newClone.tpPropAdd           = tpPropAdd;
            newClone.starNumUpgradeTimes = starNumUpgradeTimes;
            newClone.index               = index;
            newClone.wakeNum             = wakeNum;
            newClone.nameBeforeId        = nameBeforeId;
            newClone.Likability          = Likability;
            newClone.teamPos             = teamPos;
            newClone.likability          = likability;
            newClone.Fatigue             = Fatigue;
            newClone.TeamOrder           = TeamOrder;
            newClone.sex                 = sex;
            newClone.skillLevel          = skillLevel;
            newClone.teamIdBelongTo      = teamIdBelongTo;
            newClone.id                  = id;

            newClone.equipHelmet       = equipHelmet;
            newClone.equipBreastplate  = equipBreastplate;
            newClone.equipGardebras    = equipGardebras;
            newClone.equipLegging      = equipLegging;
            newClone.jewelry0          = jewelry0;
            newClone.jewelry1          = jewelry1;
            newClone.RoleAttritubeList = RoleAttritubeList;
            newClone.equipWeapon       = equipWeapon;
            newClone.a_skillOmega      = a_skillOmega;
            newClone.a_skill0          = a_skill0;
            newClone.a_skill1          = a_skill1;
            newClone.ItemInfo          = ItemInfo;
            newClone.AnimData          = AnimData;

            return(newClone);
        }
Пример #3
0
        public GDEHeroData DeepClone()
        {
            GDEHeroData newClone = ShallowClone();

            newClone.equipHelmet       = equipHelmet.DeepClone();
            newClone.equipBreastplate  = equipBreastplate.DeepClone();
            newClone.equipGardebras    = equipGardebras.DeepClone();
            newClone.equipLegging      = equipLegging.DeepClone();
            newClone.jewelry0          = jewelry0.DeepClone();
            newClone.jewelry1          = jewelry1.DeepClone();
            newClone.RoleAttritubeList = RoleAttritubeList.DeepClone();
            newClone.equipWeapon       = equipWeapon.DeepClone();
            newClone.a_skillOmega      = a_skillOmega.DeepClone();
            newClone.a_skill0          = a_skill0.DeepClone();
            newClone.a_skill1          = a_skill1.DeepClone();
            newClone.ItemInfo          = ItemInfo.DeepClone();
            newClone.AnimData          = AnimData.DeepClone();
            return(newClone);
        }
Пример #4
0
        public GDEHeroData DeepClone()
        {
            GDEHeroData newClone = ShallowClone();

            return(newClone);
        }