18 private readonly List<BadTask>
m_TaskList =
new List<BadTask>();
37 public bool IsIdle => m_TaskList.Count == 0;
44 for (
int i =
m_TaskList.Count - 1; i >= 0; --i)
Implements the parse for the 'await' Expression.
IEnumerator< BadObject > Enumerator
The Enumerator of the Runnable.
Implements a Task Object.
void Resume()
Resumes the Task.
void SetCreator(BadTask? task)
Sets the Creator of this Task.
bool IsPaused
Is true if the task is running.
void Start()
Starts the Task.
BadTask? Creator
The Creator of this Task.
bool IsFinished
Is true if the task is finished.
IEnumerable< BadTask > ContinuationTasks
Enumeration of Continuation Tasks.
void Cancel()
Cancels the Task.
void Stop()
Stops the Task.
BadRunnable Runnable
Runnable of the Task.
The BadScript Task Runner.
void RunStep()
Runs a single step of the Task Runner.
static BadTaskRunner()
Static Constructor.
void Clear()
Clears all Tasks.
void ClearTasksFrom(BadTask creator)
Clears all Tasks from the given Creator.
void AddTask(BadTask task, bool runImmediately=false)
Adds a Task to the Task Runner.
static readonly BadTaskRunner Instance
The Task Runner Instance.
bool IsTaskAdded(BadTask task)
Checks if a Task is added to the Task Runner.
BadTask? Current
the Current task
readonly List< BadTask > m_TaskList
The Task List.
bool IsIdle
Is true if there are no tasks to run.
Settings of the Task Runner.
Implements the Operator Table used by the Parser.
void AddValueParser(BadValueParser parser)
Adds a Value parser to the List of Value Parsers.
static BadOperatorTable Instance
The Operator Table Instance.
static T Instance
Returns the Instance of the Settings Provider.
Contains task/async Extensions and Integrations for the BadScript2 Runtime.
Contains the Operators for the BadScript2 Language.