Class WorkActionScheduler
Represents an object that handles the updating and management of IWorkAction instances.
Inheritance
WorkActionScheduler
Implements
Inherited Members
Namespace: Evergine.Framework.Services
Assembly: Evergine.Framework.dll
Syntax
public class WorkActionScheduler : UpdatableService, IDependencyObject
Constructors
WorkActionScheduler()
Initializes a new instance of the WorkActionScheduler class.
Declaration
public WorkActionScheduler()
Methods
AddWorkAction(IWorkAction)
Registers a work action.
Declaration
public void AddWorkAction(IWorkAction workAction)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorkAction | workAction | The work action. |
OnAttached()
Attaches this service.
Declaration
protected override bool OnAttached()
Returns
| Type | Description |
|---|---|
| bool | True if everything is OK. |
Overrides
OnDestroy()
Invoked when the object is about to be disposed.
Declaration
protected override void OnDestroy()
Overrides
OnDetached()
Detaches this service.
Declaration
protected override void OnDetached()
Overrides
OnLoaded()
Invoked when the object is loaded.
Declaration
protected override void OnLoaded()
Overrides
RemoveWorkAction(IWorkAction)
Removes a work action.
Declaration
public void RemoveWorkAction(IWorkAction workAction)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorkAction | workAction | The work action. |
Update(TimeSpan)
Updates the service.
Declaration
public override void Update(TimeSpan gameTime)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | gameTime | The current game time. |