ScriptSystemExtensions Class

Summary

Extension methods for ScriptSystem.
Namespace
StrideToolkit.Engine
Base Types
  • object
graph BT Type-->Base0["object"] Type["ScriptSystemExtensions"] class Type type-node

Syntax

public static class ScriptSystemExtensions

Methods

Name Value Summary
AddAction(ScriptSystem, Action, TimeSpan, long) MicroThread
Adds a micro thread function to the scriptSystem that executes after waiting specified delay.
static
AddAction(ScriptSystem, Action, TimeSpan, TimeSpan, long) MicroThread
Adds a micro thread function to the scriptSystem that executes after waiting specified delay and repeats execution.
static
AddOnEventAction<T>(ScriptSystem, EventKey<T>, Action<T>, long) MicroThread
Adds a micro thread function to the scriptSystem that executes when the event is published.
static
AddOnEventAction<T>(ScriptSystem, EventReceiver<T>, Action<T>, long) MicroThread
Adds a micro thread function to the scriptSystem that executes when the event is published.
static
AddOnEventTask<T>(ScriptSystem, EventKey<T>, Func<T, Task>, long) MicroThread
Adds a micro thread function to the scriptSystem that executes when the event is published.
static
AddOnEventTask<T>(ScriptSystem, EventReceiver<T>, Func<T, Task>, long) MicroThread
Adds a micro thread function to the scriptSystem that executes when the event is published.
static
AddOverTimeAction(ScriptSystem, Action<float>, TimeSpan, long) MicroThread
Adds a micro thread function to the scriptSystem that executes after waiting specified delay and repeats execution.
static
AddTask(ScriptSystem, Func<Task>, TimeSpan, long) MicroThread
Adds a micro thread function to the scriptSystem that executes after waiting specified delay.
static
AddTask(ScriptSystem, Func<Task>, TimeSpan, TimeSpan, long) MicroThread
Adds a micro thread function to the scriptSystem that executes after waiting specified delay and repeats execution.
static
CancelAll(ICollection<MicroThread>) void
Cancels all MicroThread and clears the microThreads collection.
static
WaitFor(ScriptSystem, TimeSpan) Task
Waits for the specified delay delay .
static