Script.Base
Last updated
Last updated
Constructor
Syntaxpublic ScriptBase ()
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Gets the ICoroutine interface for the current coroutine.
Syntaxprotected CurrentCoroutine { get; }
Value
The ICoroutine interface to the currently running coroutine.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
A list of all coroutines for this script.
SyntaxReturns
A list containing all running or waiting coroutines.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The total number of coroutines running on this script.
SyntaxReturns
The total number of coroutines running on this script.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Init() is called after all interfaces have been initialized.
Syntax
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to create a critical section with a using statement, ensuring that no other coroutines or scripts (via Reflective) may enter this code section while one coroutine or script is in it.
SyntaxSee Also
Parameters
Token
The object controlling the lock. Recommended to be a private object member.
Returns
A ScopedLock that holds the lock and will release it in IDisposable.Dispose.
Exceptions
Thrown if Token is null.
Remarks
Example
C# Example
|
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Gets the script console.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The maximum number of coroutines that a single script can run.
SyntaxValue
The maximum number of coroutines that a single script can run.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Memory information for the pool this script is in.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The number of events currently waiting to be processed.
SyntaxValue
The number of events currently waiting to be processed.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Post the event for all scripts.
SyntaxParameters
message
The message id used to direct the event.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Post the event for all scripts.
SyntaxParameters
message
The message id used to direct the event.
data
The object to be post.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Post the event for the target script.
SyntaxParameters
targetScriptId
message
The message id used to direct the event.
data
The object to be post.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
SyntaxSee Also
Parameters
message
The message id used to direct the event.
data
An object to send to scripts subscribed to message.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
SyntaxSee Also
Parameters
targetScriptId
message
The message id used to direct the event.
data
An object to send to script targetScriptId if subscribed to message.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Release a lock if held.
SyntaxSee Also
Parameters
Token
The object controlling the lock. Recommended to be a private object member.
Exceptions
Thrown if Token is null.
Remarks
Example
C# Example
|
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Script handle to this script.
SyntaxValue
An opaque type used by certain API methods.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Obsolete
SyntaxValue
Always returns 0
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Starts a coroutine on the current script.
SyntaxParameters
coroutine
The coroutine to run.
handler
A callback to know when the coroutine has finished.
Returns
An ICoroutine interface to stop the coroutine or see if it has finished.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Starts a coroutine on the current script.
SyntaxType Parameters
T
Type of the first parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
Parameters
coroutine
The coroutine to run.
arg1
First parameter to pass to the coroutine when it is run.
handler
A callback to know when the coroutine has finished. Will report Success==false only if an exception was thrown by the coroutine. Message will be the name of the coroutine.
Returns
An ICoroutine interface to stop the coroutine or see if it has finished.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Starts a coroutine on the current script.
SyntaxType Parameters
T
Type of the first parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
T1
Type of the second parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
Parameters
coroutine
The coroutine to run.
arg1
First parameter to pass to the coroutine when it is run.
arg2
Second parameter to pass to the coroutine when it is run.
handler
A callback to know when the coroutine has finished. Will report Success==false only if an exception was thrown by the coroutine. Message will be the name of the coroutine.
Returns
An ICoroutine interface to stop the coroutine or see if it has finished.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Starts a coroutine on the current script.
SyntaxType Parameters
T
Type of the first parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
T1
Type of the second parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
T2
Type of the third parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
Parameters
coroutine
The coroutine to run.
arg1
First parameter to pass to the coroutine when it is run.
arg2
Second parameter to pass to the coroutine when it is run.
arg3
Third parameter to pass to the coroutine when it is run.
handler
A callback to know when the coroutine has finished. Will report Success==false only if an exception was thrown by the coroutine. Message will be the name of the coroutine.
Returns
An ICoroutine interface to stop the coroutine or see if it has finished.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Starts a coroutine on the current script.
SyntaxType Parameters
T
Type of the first parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
T1
Type of the second parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
T2
Type of the third parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
T3
Type of the fourth parameter to pass to the coroutine when it is run. This can usually be derived from the Action.
Parameters
coroutine
The coroutine to run.
arg1
First parameter to pass to the coroutine when it is run.
arg2
Second parameter to pass to the coroutine when it is run.
arg3
Third parameter to pass to the coroutine when it is run.
arg4
Fourth parameter to pass to the coroutine when it is run.
handler
A callback to know when the coroutine has finished. Will report Success==false only if an exception was thrown by the coroutine. Message will be the name of the coroutine.
Returns
An ICoroutine interface to stop the coroutine or see if it has finished.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Subscribes to events sent by other scripts
SyntaxParameters
message
The event message to listen for.
callback
Handler to call when the event is generated
persistent
Set to false if a one time event is desired.
Returns
An IEventSubscription that can be used to Unsubscribe from these script events.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Subscribes to events sent only by a specific script.
SyntaxParameters
sourceScriptId
Ignore events posted by scripts not matching this id.
message
The event message to listen for.
callback
Handler to call when the event is generated.
persistent
Set to false if a one time event is desired.
Returns
An IEventSubscription that can be used to Unsubscribe from these script events.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Terminates this script immediately.
SyntaxParameters
message
The message to write to the log.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Delays execution of the current coroutine for the specified time.
SyntaxParameters
duration
The length of time to wait before continuing in seconds.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Delays execution of the current coroutine for the specified time.
SyntaxParameters
duration
The length of time to wait before continuing.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Block the current coroutine until otherCoroutine finishes.
SyntaxParameters
otherCoroutine
The coroutine to wait for.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxParameters
func
The event-generating API to wait for.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxParameters
func
The event-generating API to wait for.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxParameters
func
The event-generating API to wait for.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxParameters
func
The event-generating API to wait for.
run
An Action to run after subscribing the the event, but before waiting for the event to occurr.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
run
An Action to run after subscribing the the event, but before waiting for the event to occurr.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
T1
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
t1
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
run
An Action to run after subscribing the the event, but before waiting for the event to occurr.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
T1
The type of the argument to func.
T2
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
t1
An argument to func.
t2
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
run
An Action to run after subscribing the the event, but before waiting for the event to occurr.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
T1
The type of the argument to func.
T2
The type of the argument to func.
T3
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
t1
An argument to func.
t2
An argument to func.
t3
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
ARG4
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
arg4
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
ARG4
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
arg4
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
ARG4
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
arg4
An argument to func.
run
An Action to run after subscribing the the event, but before waiting for the event to occurr.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
T1
The type of the argument to func.
T2
The type of the argument to func.
T3
The type of the argument to func.
T4
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
t1
An argument to func.
t2
An argument to func.
t3
An argument to func.
t4
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
ARG4
The type of the argument to func.
ARG5
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
arg4
An argument to func.
arg5
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
ARG4
The type of the argument to func.
ARG5
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
arg4
An argument to func.
arg5
An argument to func.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Use to pause the script until an event happens.
SyntaxType Parameters
ARG1
The type of the argument to func.
ARG2
The type of the argument to func.
ARG3
The type of the argument to func.
ARG4
The type of the argument to func.
ARG5
The type of the argument to func.
Parameters
func
The event-generating API to wait for.
arg1
An argument to func.
arg2
An argument to func.
arg3
An argument to func.
arg4
An argument to func.
arg5
An argument to func.
run
An Action to run after subscribing the the event, but before waiting for the event to occurr.
Returns
An EventData that can be case to type corresponding to the event type of func.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
WaitFor and take a lock on Token
SyntaxSee Also
Parameters
Token
The object controlling the lock. Recommended to be a private object member.
Exceptions
Thrown if Token is null.
Remarks
Example
C# Example
|
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Wait the current coroutine until at least 1 signal is sent to it through the ICoroutine interface.
SyntaxReturns
The number of signals received while waiting.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Yield to let other coroutines or events run.
Syntax
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
protected GetCoroutineCount ()
[Sansar.Script.NonReflective] public abstract Init ()
[Sansar.Script.NonReflective] public Log { protected get; set; }
protected MaxCoroutines { get; }
[Sansar.Script.NonReflective] public Memory { protected get; set; }
protected PendingEventCount { get; }
protected PostScriptEvent ( message)
The id of the script to sent the event to. To broadcast the message to all subscripted scripts use .
[System.Obsolete("Deprecated. Use PostScriptEvent directly instead.", true)] protected PostSimpleScriptEvent ( message, data)
[System.Obsolete("Deprecated. Use PostScriptEvent directly instead.", true)] protected PostSimpleScriptEvent ( targetScriptId, message, data)
The id of the script to sent the event to. To broadcast the message to all subscripted scripts use .
protected ReleaseLock ( Token)
[Sansar.Script.NonReflective] public Script { protected get; set; }
[System.Obsolete("No longer used as there is no longer a limited number of message ids. Obsoleted 2018-04.", true)] protected static ScriptEventMessageIdCount { get; }
protected StartCoroutine<T, T1, T2, T3> ( coroutine, T arg1, T1 arg2, T2 arg3, T3 arg4, handler)
protected Terminate ( message)
protected WaitFor<ARG1, ARG2, ARG3> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3)
protected WaitFor<ARG1, ARG2, ARG3> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3)
protected WaitFor<ARG1, ARG2, ARG3> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3, run)
protected WaitFor<ARG1, ARG2, ARG3, ARG4> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4)
protected WaitFor<ARG1, ARG2, ARG3, ARG4> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4)
protected WaitFor<ARG1, ARG2, ARG3, ARG4> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, run)
protected WaitFor<T1, T2, T3, T4> ( func, T1 t1, T2 t2, T3 t3, T4 t4)
protected WaitFor<ARG1, ARG2, ARG3, ARG4, ARG5> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5)
protected WaitFor<ARG1, ARG2, ARG3, ARG4, ARG5> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5)
protected WaitFor<ARG1, ARG2, ARG3, ARG4, ARG5> ( func, ARG1 arg1, ARG2 arg2, ARG3 arg3, ARG4 arg4, ARG5 arg5, run)
protected WaitForLock ( Token)
protected WaitForSignal ()
[Sansar.Script.NonReflective] public Yield ()