AttachConsole() public method

Sets the console this cursor is targetting.
public AttachConsole ( SurfaceEditor console ) : void
console SurfaceEditor The console the cursor works with.
return void
Esempio n. 1
0
        private void AfterDeserialized(StreamingContext context)
        {
            if (!serializeTextSurface)
            {
                textSurface = new TextSurface(serializedWidth, serializedHeight, Engine.DefaultFont);
            }

            base.textSurface = textSurface;

            _virtualCursor.AttachConsole(this);
            //_virtualCursor.ResetCursorEffect();

            if (_renderer is ITextSurfaceRendererUpdate)
            {
                ((ITextSurfaceRendererUpdate)_renderer).Update(textSurface);
            }
        }
Esempio n. 2
0
 private void AfterDeserialized(StreamingContext context)
 {
     _virtualCursor.AttachConsole(this);
 }