Example #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 CircleEmitter(newOwner);
     CopyValuesTo(ret);
     ret.Perimeter = Perimeter;
     ret.Radiate = Radiate;
     ret.Radius = Radius;
     return ret;
 }
Example #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 CircleEmitter(newOwner);

            CopyValuesTo(ret);
            ret.Perimeter = Perimeter;
            ret.Radiate   = Radiate;
            ret.Radius    = Radius;
            return(ret);
        }