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 LineEmitter(newOwner);

            CopyValuesTo(ret);
            ret.Angle        = Angle;
            ret.EmitBothWays = EmitBothWays;
            ret.Length       = Length;
            ret.Rectilinear  = Rectilinear;
            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 LineEmitter(newOwner);
     CopyValuesTo(ret);
     ret.Angle = Angle;
     ret.EmitBothWays = EmitBothWays;
     ret.Length = Length;
     ret.Rectilinear = Rectilinear;
     return ret;
 }