コード例 #1
0
ファイル: BorderedConsole.cs プロジェクト: zxsean/SadConsole
        public BorderComponent(int[] connectedLineStyle, Color foreground, Color background)
        {
            if (!CellSurface.ValidateLineStyle(connectedLineStyle))
            {
                throw new ArgumentException("The connected line array is invalid.", nameof(connectedLineStyle));
            }

            _borderGlyphs    = connectedLineStyle;
            _borderCellStyle = new Cell(foreground, background);
        }