Class Coroutine
- Namespace
- MoonSharp.Interpreter
- Assembly
- Assembly-CSharp.dll
public class Coroutine : RefIdObject, IScriptPrivateResource
- Inheritance
-
Coroutine
- Implements
-
- Inherited Members
-
- Extension Methods
-
Properties
AutoYieldCounter
public long AutoYieldCounter { get; set; }
Property Value
- long
OwnerScript
public Script OwnerScript { get; }
Property Value
- Script
State
public CoroutineState State { get; }
Property Value
- CoroutineState
Type
public Coroutine.CoroutineType Type { get; }
Property Value
- Coroutine.CoroutineType
Methods
AsEnumerable()
public IEnumerable<object> AsEnumerable()
Returns
- IEnumerable<object>
AsEnumerable<T>()
public IEnumerable<T> AsEnumerable<T>()
Returns
- IEnumerable<T>
Type Parameters
T
AsTypedEnumerable()
public IEnumerable<DynValue> AsTypedEnumerable()
Returns
- IEnumerable<DynValue>
AsUnityCoroutine()
public IEnumerator AsUnityCoroutine()
Returns
- IEnumerator
GetStackTrace(int, SourceRef)
public WatchItem[] GetStackTrace(int skip, SourceRef entrySourceRef = null)
Parameters
skip int
entrySourceRef SourceRef
Returns
- WatchItem[]
Resume()
Returns
- DynValue
Resume(params DynValue[])
public DynValue Resume(params DynValue[] args)
Parameters
args DynValue[]
Returns
- DynValue
Resume(ScriptExecutionContext)
public DynValue Resume(ScriptExecutionContext context)
Parameters
context ScriptExecutionContext
Returns
- DynValue
Resume(ScriptExecutionContext, params DynValue[])
public DynValue Resume(ScriptExecutionContext context, params DynValue[] args)
Parameters
context ScriptExecutionContext
args DynValue[]
Returns
- DynValue
Resume(ScriptExecutionContext, params object[])
public DynValue Resume(ScriptExecutionContext context, params object[] args)
Parameters
context ScriptExecutionContext
args object[]
Returns
- DynValue
Resume(params object[])
public DynValue Resume(params object[] args)
Parameters
args object[]
Returns
- DynValue