예제 #1
0
        /// <summary>
        /// Returns an uninitialised deep copy of the Emitter.
        /// </summary>
        /// <returns>A deep copy of the Emitter.</returns>
        public override Emitter DeepCopy()
        {
            Emitter copy = new TextureEmitter
            {
                ApplyPixelColours = this.ApplyPixelColours,
                Scale             = this.Scale,
                Texture           = this.Texture,
                Threshold         = this.Threshold
            };

            base.CopyBaseFields(copy);

            return(copy);
        }
예제 #2
0
        /// <summary>
        /// Returns an uninitialised deep copy of the Emitter.
        /// </summary>
        /// <returns>A deep copy of the Emitter.</returns>
        public override Emitter DeepCopy()
        {
            Emitter copy = new TextureEmitter
            {
                ApplyPixelColours = this.ApplyPixelColours,
                Scale = this.Scale,
                Texture = this.Texture,
                Threshold = this.Threshold
            };

            base.CopyBaseFields(copy);

            return copy;
        }