PrinceGame.Sequence.DeepClone C# (CSharp) Method

DeepClone() public method

public DeepClone ( ) : Sequence
return Sequence
        public Sequence DeepClone()
        {
            Sequence newSequence = new Sequence();
            newSequence.name = this.name;
            newSequence.raised = this.raised;
            newSequence.collision = this.collision;
            newSequence.tileType = this.tileType;
            newSequence.path = this.path;
            newSequence.config_type = this.config_type;

            //newSequence.frameTime = this.frameTime;
            foreach (Frame f in this.frames)
            {
                newSequence.frames.Add(f);
            }
            return newSequence;
        }