예제 #1
0
        public object Clone()
        {
            BaseInfoCollection cloneTable = new BaseInfoCollection();

            foreach (BaseInfo record in this)
            {
                cloneTable.Add((BaseInfo)record.Clone());
            }
            return(cloneTable);
        }
예제 #2
0
        public BaseInfoCollection ToScript()
        {
            BaseInfoCollection collection = new BaseInfoCollection();

            collection.Add(new StartInfo());
            foreach (var hole in this)
            {
                collection.Add(new SingleMoveInfo()
                {
                    X     = hole.X,
                    Y     = hole.Y,
                    W     = hole.W,
                    B     = hole.B,
                    C     = hole.C,
                    Param = hole.Param
                });
                if (hole.IsJiaGong)
                {
                    collection.Add(new M21Info());
                }
            }
            collection.Add(new EndInfo());
            return(collection);
        }