Class SlowTaskModule
Manages tasks that run at regular intervals
Inheritance
SlowTaskModule
Syntax
public class SlowTaskModule : ScriptableSettings<SlowTaskModule>, IModuleBehaviorCallbacks, IModuleMarsUpdate, IModule, IProvidesSlowTasks, IFunctionalityProvider
Methods
AddMarsTimeSlowTask(Action, Single, Boolean)
Declaration
public bool AddMarsTimeSlowTask(Action action, float sleepTime, bool replace = false)
Parameters
| Type |
Name |
Description |
| Action |
action |
|
| Single |
sleepTime |
|
| Boolean |
replace |
|
Returns
Implements
AddSlowTask(Action, Single, Boolean)
Declaration
public bool AddSlowTask(Action action, float sleepTime, bool replace = false)
Parameters
| Type |
Name |
Description |
| Action |
action |
|
| Single |
sleepTime |
|
| Boolean |
replace |
|
Returns
Implements
ClearTasks()
Declaration
RemoveMarsTimeSlowTask(Action)
Declaration
public bool RemoveMarsTimeSlowTask(Action task)
Parameters
| Type |
Name |
Description |
| Action |
task |
|
Returns
Implements
RemoveSlowTask(Action)
Declaration
public bool RemoveSlowTask(Action task)
Parameters
| Type |
Name |
Description |
| Action |
task |
|
Returns
Implements
Explicit Interface Implementations
IModuleMarsUpdate.OnMarsUpdate()
Called at fixed intervals while the MARS lifecycle is running
Declaration
void IModuleMarsUpdate.OnMarsUpdate()
Implements