Class ScriptExecutionContext
- Namespace
- MoonSharp.Interpreter
- Assembly
- Assembly-CSharp.dll
public class ScriptExecutionContext : IScriptPrivateResource
- Inheritance
-
ScriptExecutionContext
- Implements
-
- Inherited Members
-
- Extension Methods
-
Properties
AdditionalData
public object AdditionalData { get; set; }
Property Value
- object
CallingLocation
public SourceRef CallingLocation { get; }
Property Value
- SourceRef
CurrentGlobalEnv
public Table CurrentGlobalEnv { get; }
Property Value
- Table
IsDynamicExecution
public bool IsDynamicExecution { get; }
Property Value
- bool
OwnerScript
public Script OwnerScript { get; }
Property Value
- Script
Methods
Call(DynValue, params DynValue[])
public DynValue Call(DynValue func, params DynValue[] args)
Parameters
func DynValue
args DynValue[]
Returns
- DynValue
EmulateClassicCall(CallbackArguments, string, Func<LuaState, int>)
public DynValue EmulateClassicCall(CallbackArguments args, string functionName, Func<LuaState, int> callback)
Parameters
args CallbackArguments
functionName string
callback Func<LuaState, int>
Returns
- DynValue
EvaluateSymbol(SymbolRef)
public DynValue EvaluateSymbol(SymbolRef symref)
Parameters
symref SymbolRef
Returns
- DynValue
EvaluateSymbolByName(string)
public DynValue EvaluateSymbolByName(string symbol)
Parameters
symbol string
Returns
- DynValue
FindSymbolByName(string)
public SymbolRef FindSymbolByName(string symbol)
Parameters
symbol string
Returns
- SymbolRef
GetBinaryMetamethod(DynValue, DynValue, string)
public DynValue GetBinaryMetamethod(DynValue op1, DynValue op2, string eventName)
Parameters
op1 DynValue
op2 DynValue
eventName string
Returns
- DynValue
GetCallingCoroutine()
public Coroutine GetCallingCoroutine()
Returns
- Coroutine
GetMetamethod(DynValue, string)
public DynValue GetMetamethod(DynValue value, string metamethod)
Parameters
value DynValue
metamethod string
Returns
- DynValue
GetMetamethodTailCall(DynValue, string, params DynValue[])
public DynValue GetMetamethodTailCall(DynValue value, string metamethod, params DynValue[] args)
Parameters
value DynValue
metamethod string
args DynValue[]
Returns
- DynValue
GetMetatable(DynValue)
public Table GetMetatable(DynValue value)
Parameters
value DynValue
Returns
- Table
GetScript()
public Script GetScript()
Returns
- Script
PerformMessageDecorationBeforeUnwind(DynValue, ScriptRuntimeException)
public void PerformMessageDecorationBeforeUnwind(DynValue messageHandler, ScriptRuntimeException exception)
Parameters
messageHandler DynValue
exception ScriptRuntimeException