Class WorkActionScheduler
Represents an object that handles the update 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)
Register a work action.
Declaration
public void AddWorkAction(IWorkAction workAction)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | workAction | The work action. |
OnAttached()
Attach this service.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if all is OK. |
Overrides
OnDestroy()
Invoked when the object is going to be disposed.
Declaration
protected override void OnDestroy()
Overrides
OnDetach()
Detach this service.
Declaration
protected override void OnDetach()
Overrides
OnLoaded()
Invoked when the object is loaded.
Declaration
protected override void OnLoaded()
Overrides
RemoveWorkAction(IWorkAction)
Remove work action.
Declaration
public void RemoveWorkAction(IWorkAction workAction)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | workAction | The work action. |
Update(TimeSpan)
Update service.
Declaration
public override void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The current gameTime. |