コード例 #1
0
ファイル: BaseConsole.cs プロジェクト: Oroniss/RLEngine_ECS
        protected BaseConsole(int width, int height, int left, int top, RLColor backColor, BackConsole backConsole)
        {
            _height      = height;
            _width       = width;
            _left        = left;
            _top         = top;
            _backConsole = backConsole;
            _backColor   = backColor;

            _console = new RLConsole(_width, _height);
            _console.SetBackColor(0, 0, _width, _height, backColor);
        }
コード例 #2
0
ファイル: MapConsole.cs プロジェクト: Oroniss/RLEngine
 public MapConsole(int width, int height, int left, int top, RLColor backColor, BackConsole backConsole)
     : base(width, height, left, top, backColor, backConsole)
 {
 }
コード例 #3
0
ファイル: TextConsole.cs プロジェクト: Oroniss/RLEngine_ECS
        const int _ARRAYLENGTH = 100;         // TODO: Put this into a config file somewhere.

        public TextConsole(int width, int height, int left, int top, RLColor backColor, BackConsole backConsole)
            : base(width, height, left, top, backColor, backConsole)
        {
            _textWidth  = _console.Width - 2;            // 1 on each side
            _textHeight = _console.Height - 4;           // 3 at the top, 1 at the bottom.

            _currentIndex = 0;
            _outputText   = new string[_ARRAYLENGTH];
            for (var i = 0; i < _outputText.Length; i++)
            {
                _outputText[i] = "";
            }
        }