Exemplo n.º 1
0
        public TileSource Clone()
        {
            TileSource temp = (TileSource)MemberwiseClone();

            temp.tileAnimation = tileAnimation.Clone();
            return(temp);
        }
Exemplo n.º 2
0
        public SpriteLight Clone()
        {
            SpriteLight temp = new SpriteLight();
            var         bs   = (BaseSprite)this.ShallowCopy();

            temp              = convertFromBase(bs);
            temp.lightMask    = lightMask.Clone();
            temp.lightOffAnim = lightOffAnim.Clone();
            return(temp);
        }
        public BasicAbility Clone()
        {
            BasicAbility temp = (BasicAbility)this.MemberwiseClone();

            temp.abilityIcon       = abilityIcon.Clone();
            temp.statModifier      = statModifier.Clone();
            temp.EnemyStatModifier = EnemyStatModifier.Clone();
            temp.abilityModifier   = abilityModifier.Clone();
            //temp.AbilityManaCost = new List<int>(AbilityManaCost);
            //temp.AbilityAPCost = new List<int>(AbilityAPCost);
            //temp.AbilityHitChance = new List<int>(AbilityHitChance);
            //temp.AbilityCritChance = new List<int>(AbilityCritChance);
            temp.abiAOEM         = abiAOEM.Clone();
            temp.abiAOEMAS       = abiAOEMAS.Clone();
            temp.targetableTypes = new List <BaseClass.CLASSType>(targetableTypes);
            //temp.abilityDescription = "";

            return(temp);
        }