Skip to content

UpdateComponent Class

A base class that implements Update(IScreenObject, TimeSpan) of IComponent.

C#
public abstract class UpdateComponent : IComponent

Inheritance object

Implements IComponent

C#
protected UpdateComponent()

Indicates priority to other components.

C#
public uint SortOrder { get; set; }

Called by a host on the update frame.

C#
public abstract void Update(IScreenObject host, TimeSpan delta)

host IScreenObject
The host calling the component.

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

Called when the component is added to a host.

C#
public virtual void OnAdded(IScreenObject host)

host IScreenObject
The host that added the component.

Called when the component is removed from the host.

C#
public virtual void OnRemoved(IScreenObject host)

host IScreenObject
The host that removed the component.