Show / Hide Table of Contents

Class SurfaceComponentFollowTarget

Add to a IScreenSurface to have the ViewPosition center on a specific object.

Inheritance
object
UpdateComponent
SurfaceComponentFollowTarget
Implements
IComponent
Inherited Members
UpdateComponent.OnRemoved(IScreenObject)
UpdateComponent.SortOrder
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Components
Assembly: SadConsole.dll
Syntax
public class SurfaceComponentFollowTarget : UpdateComponent, IComponent

Constructors

SurfaceComponentFollowTarget()

Declaration
public SurfaceComponentFollowTarget()

Properties

Target

Target to have the surface follow.

Declaration
public IScreenObject? Target { get; set; }
Property Value
Type Description
IScreenObject

Methods

OnAdded(IScreenObject)

Called when the component is added to a host.

Declaration
public override void OnAdded(IScreenObject host)
Parameters
Type Name Description
IScreenObject host

The host that added the component.

Overrides
UpdateComponent.OnAdded(IScreenObject)

Update(IScreenObject, TimeSpan)

Called by a host on the update frame.

Declaration
public override void Update(IScreenObject hostObject, TimeSpan delta)
Parameters
Type Name Description
IScreenObject hostObject
TimeSpan delta

The time that has elapsed since this method was last called.

Overrides
UpdateComponent.Update(IScreenObject, TimeSpan)

Implements

IComponent

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX