예제 #1
0
파일: CodePiece.cs 프로젝트: helvm/BefunGen
        public void AppendTop(CodePiece top)
        {
            top = top.Copy();

            CodePiece compressConn;

            if (ASTObject.CGO.CompressVerticalCombining && (compressConn = DoCompressVertically(top, this)) != null)
            {
                this.RemoveRow(this.MinY);
                top.RemoveRow(top.MaxY - 1);

                this.AppendTopDirect(compressConn);
            }

            AppendTopDirect(top);
        }
예제 #2
0
파일: CodePiece.cs 프로젝트: helvm/BefunGen
        public void AppendBottom(CodePiece bot)
        {
            bot = bot.Copy();

            CodePiece compressConn;

            if (ASTObject.CGO.CompressVerticalCombining && (compressConn = DoCompressVertically(this, bot)) != null)
            {
                this.RemoveRow(this.MaxY - 1);
                bot.RemoveRow(bot.MinY);

                this.AppendBottomDirect(compressConn);
            }

            AppendBottomDirect(bot);
        }