Ejemplo n.º 1
0
        public GDEWeaponData ShallowClone()
        {
            string        newKey   = Guid.NewGuid().ToString();
            GDEWeaponData newClone = new GDEWeaponData(newKey);

            newClone.localScale = localScale;
            newClone.aggro      = aggro;
            newClone.counter    = counter;
            newClone.reflect    = reflect;
            newClone.stun       = stun;
            newClone.critical   = critical;
            newClone.poison     = poison;
            newClone.bleed      = bleed;
            newClone.slow       = slow;
            newClone.pierce     = pierce;
            newClone.flame      = flame;
            newClone.weaponName = weaponName;
            newClone.typeName   = typeName;
            newClone.raceName   = raceName;
            newClone.shapePath  = shapePath;

            newClone.projectileKey      = projectileKey;
            newClone.extraProjectileKey = extraProjectileKey;

            return(newClone);
        }
Ejemplo n.º 2
0
        public GDEWeaponData DeepClone()
        {
            GDEWeaponData newClone = ShallowClone();

            newClone.OpaType = OpaType.DeepClone();
            newClone.AniType = AniType.DeepClone();
            return(newClone);
        }
Ejemplo n.º 3
0
        public GDEWeaponData DeepClone()
        {
            GDEWeaponData newClone = ShallowClone();

            newClone.projectileKey      = projectileKey.DeepClone();
            newClone.extraProjectileKey = extraProjectileKey.DeepClone();
            return(newClone);
        }
Ejemplo n.º 4
0
        public GDEWeaponData ShallowClone()
        {
            string        newKey   = Guid.NewGuid().ToString();
            GDEWeaponData newClone = new GDEWeaponData(newKey);

            newClone.ID            = ID;
            newClone.MagazineSize  = MagazineSize;
            newClone.ConsumePerHit = ConsumePerHit;
            newClone.DamageVal     = DamageVal;
            newClone.AtkInterval   = AtkInterval;
            newClone.ChargeTime    = ChargeTime;
            newClone.ReloadTime    = ReloadTime;
            newClone.Thrust        = Thrust;
            newClone.AlertRange    = AlertRange;
            newClone.PrefabPath    = PrefabPath;
            newClone.SkinName      = SkinName;

            newClone.OpaType = OpaType;
            newClone.AniType = AniType;

            return(newClone);
        }