Exemple #1
0
        /// <summary>
        /// Creates a deep copy of this <see cref="ParticleEmitter"/> instance.
        /// </summary>
        /// <returns>A deep copy of this <see cref="ParticleEmitter"/>.</returns>
        public override ParticleEmitter DeepCopy(IParticleEffect newOwner)
        {
            var ret = new RectEmitter(newOwner);

            CopyValuesTo(ret);
            ret.Height    = Height;
            ret.Perimeter = Perimeter;
            ret.Width     = Width;
            return(ret);
        }
Exemple #2
0
 /// <summary>
 /// Creates a deep copy of this <see cref="ParticleEmitter"/> instance.
 /// </summary>
 /// <returns>A deep copy of this <see cref="ParticleEmitter"/>.</returns>
 public override ParticleEmitter DeepCopy(IParticleEffect newOwner)
 {
     var ret = new RectEmitter(newOwner);
     CopyValuesTo(ret);
     ret.Height = Height;
     ret.Perimeter = Perimeter;
     ret.Width = Width;
     return ret;
 }