Class TaskList
- Namespace
- Lime
- Assembly
- Lime.dll
public class TaskList : List<Task>, IList<Task>, ICollection<Task>, IReadOnlyList<Task>, IReadOnlyCollection<Task>, IEnumerable<Task>, IList, ICollection, IEnumerable
- Inheritance
-
TaskList
- Implements
- Inherited Members
- Extension Methods
Constructors
TaskList()
public TaskList()
TaskList(Node)
public TaskList(Node node)
Parameters
node
Node
Properties
Current
Currently processing TaskList.
public static TaskList Current { get; }
Property Value
Node
Gets the widget this instance belongs to.
public Node Node { get; }
Property Value
Methods
Add(IEnumerator<object>, object)
Adds task to the end of this list.
public Task Add(IEnumerator<object> e, object tag = null)
Parameters
e
IEnumerator<object>tag
object
Returns
Add(Func<IEnumerator<object>>, object)
Adds task to the end of this list.
public Task Add(Func<IEnumerator<object>> e, object tag = null)
Parameters
e
Func<IEnumerator<object>>tag
object
Returns
AddConcurrent(params IEnumerator<object>[])
public List<Task> AddConcurrent(params IEnumerator<object>[] args)
Parameters
args
IEnumerator<object>[]
Returns
AddLoop(Action, object)
public Task AddLoop(Action action, object tag = null)
Parameters
Returns
AddSequence(params IEnumerator<object>[])
public Task AddSequence(params IEnumerator<object>[] args)
Parameters
args
IEnumerator<object>[]
Returns
AnyTagged(object)
public bool AnyTagged(object tag)
Parameters
tag
object
Returns
Stop()
Stops all tasks.
public void Stop()
Stop(Predicate<Task>)
Stops all tasks that match the conditions defined by the specified predicate.
public void Stop(Predicate<Task> match)
Parameters
StopByTag(object)
Stops all tasks with specified tag (null is also a tag).
public void StopByTag(object tag)
Parameters
tag
object
Update(float)
Advances tasks by provided delta and removes completed ones.
public void Update(float delta)
Parameters
delta
floatTime delta since last Update.