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
示例#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);
            }
        }
示例#2
0
 private void AfterDeserialized(StreamingContext context)
 {
     _virtualCursor.AttachConsole(this);
 }