Example #1
0
        public VirtualConsole(
            Action<String> processCommand,
            GraphicsDevice graphicsDevice, 
            ContentManager contentManager)
        {
            commandHandler = processCommand;

            this.graphicsDevice = graphicsDevice;
            this.contentManager = contentManager;

            display = new TextDisplay(80, 25, graphicsDevice, contentManager);
            dynamicConsole = new DynamicConsoleBuffer(2048, display);
        }
Example #2
0
 public DynamicConsoleBuffer(int scrollbackSize, TextDisplay display)
 {
     this.scrollbackSize = scrollbackSize;
     Reset(display);
 }
Example #3
0
 public void Reset(TextDisplay display)
 {
     output = "";
     outputScrollPoint = 0;
     this.display = display;
     inputs = new Input[2] { new Input(), new Input() };
     activeInput = inputs[0];
     maxInputLines = 8;
 }