Exemplo n.º 1
0
        private void Render()
        {
            // Scaling objects
            int width  = Console.WindowWidth - 1;
            int height = Console.WindowHeight - 1;

            if (width != _consoleWriter.Width || height != _consoleWriter.Height)
            {
                _consoleWriter = new ConsoleWriter(width, height);
            }

            // Rendering scene
            for (int i = 0; i < _itemsHandler.Items.Count; i++)
            {
                _itemsHandler.Items[i].Draw(_consoleWriter, (char)(i + '0'));
            }


            _help.Draw(_consoleWriter);
            _realtimeInfo.Draw(_consoleWriter);

            _consoleWriter.FastFlush();
        }