예제 #1
0
파일: LineEmitter.cs 프로젝트: rc183/igf
        /// <summary>
        /// Returns an unitialised deep copy of the Emitter.
        /// </summary>
        /// <returns>A deep copy of the Emitter.</returns>
        protected override AbstractEmitter DeepCopy(AbstractEmitter exisitingInstance)
        {
            LineEmitter value = (exisitingInstance as LineEmitter) ?? new LineEmitter();

            value.Length       = this.Length;
            value.Rectilinear  = this.Rectilinear;
            value.EmitBothWays = this.EmitBothWays;

            base.DeepCopy(value);

            return(value);
        }
예제 #2
0
        /// <summary>
        /// Returns an unitialised deep copy of the Emitter.
        /// </summary>
        /// <returns>A deep copy of the Emitter.</returns>
        public override Emitter DeepCopy()
        {
            Emitter copy = new LineEmitter
            {
                Angle        = this.Angle,
                Length       = this.Length,
                Rectilinear  = this.Rectilinear,
                EmitBothWays = this.EmitBothWays
            };

            base.CopyBaseFields(copy);

            return copy;
        }
예제 #3
0
        /// <summary>
        /// Returns an unitialised deep copy of the Emitter.
        /// </summary>
        /// <returns>A deep copy of the Emitter.</returns>
        public override Emitter DeepCopy()
        {
            Emitter copy = new LineEmitter
            {
                Angle        = this.Angle,
                Length       = this.Length,
                Rectilinear  = this.Rectilinear,
                EmitBothWays = this.EmitBothWays
            };

            base.CopyBaseFields(copy);

            return(copy);
        }