pub trait IScriptExecutionContextMethods: IScriptExecutionContext {
Show 21 methods
// Provided methods
fn ctor(
self,
p: impl Into<Processor>,
call_back_function: impl Into<CallbackFunction>,
source_ref: impl Into<SourceRef>,
is_dynamic: impl Into<bool>,
) { ... }
fn get_is_dynamic_execution(self) -> bool { ... }
fn set_is_dynamic_execution(self, value: impl Into<bool>) { ... }
fn get_calling_location(self) -> SourceRef { ... }
fn set_calling_location(self, value: impl Into<SourceRef>) { ... }
fn get_additional_data(self) -> Object { ... }
fn set_additional_data(self, value: impl Into<Object>) { ... }
fn get_metatable(self, value: impl Into<DynValue>) -> Table { ... }
fn get_metamethod(
self,
value: impl Into<DynValue>,
metamethod: impl Into<Il2CppString>,
) -> DynValue { ... }
fn get_metamethod_tail_call(
self,
value: impl Into<DynValue>,
metamethod: impl Into<Il2CppString>,
args: impl Into<Array<DynValue>>,
) -> DynValue { ... }
fn get_binary_metamethod(
self,
op1: impl Into<DynValue>,
op2: impl Into<DynValue>,
event_name: impl Into<Il2CppString>,
) -> DynValue { ... }
fn get_script(self) -> Script { ... }
fn get_calling_coroutine(self) -> Coroutine_2 { ... }
fn emulate_classic_call(
self,
args: impl Into<CallbackArguments>,
function_name: impl Into<Il2CppString>,
callback: impl Into<Func_2<LuaState, i32>>,
) -> DynValue { ... }
fn call(
self,
func: impl Into<DynValue>,
args: impl Into<Array<DynValue>>,
) -> DynValue { ... }
fn evaluate_symbol(self, symref: impl Into<SymbolRef>) -> DynValue { ... }
fn evaluate_symbol_by_name(
self,
symbol: impl Into<Il2CppString>,
) -> DynValue { ... }
fn find_symbol_by_name(self, symbol: impl Into<Il2CppString>) -> SymbolRef { ... }
fn get_current_global_env(self) -> Table { ... }
fn perform_message_decoration_before_unwind(
self,
message_handler: impl Into<DynValue>,
exception: impl Into<ScriptRuntimeException>,
) { ... }
fn get_owner_script(self) -> Script { ... }
}Provided Methods§
Sourcefn ctor(
self,
p: impl Into<Processor>,
call_back_function: impl Into<CallbackFunction>,
source_ref: impl Into<SourceRef>,
is_dynamic: impl Into<bool>,
)
fn ctor( self, p: impl Into<Processor>, call_back_function: impl Into<CallbackFunction>, source_ref: impl Into<SourceRef>, is_dynamic: impl Into<bool>, )
.ctor(crate::moon_sharp::interpreter::execution::vm::processor::Processor, crate::moon_sharp::interpreter::callbackfunction::CallbackFunction, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, bool) overload
Sourcefn get_is_dynamic_execution(self) -> bool
fn get_is_dynamic_execution(self) -> bool
get_IsDynamicExecution() overload
Sourcefn set_is_dynamic_execution(self, value: impl Into<bool>)
fn set_is_dynamic_execution(self, value: impl Into<bool>)
set_IsDynamicExecution(bool) overload
Sourcefn get_calling_location(self) -> SourceRef
fn get_calling_location(self) -> SourceRef
get_CallingLocation() overload
Sourcefn set_calling_location(self, value: impl Into<SourceRef>)
fn set_calling_location(self, value: impl Into<SourceRef>)
set_CallingLocation(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef) overload
Sourcefn get_additional_data(self) -> Object
fn get_additional_data(self) -> Object
get_AdditionalData() overload
Sourcefn set_additional_data(self, value: impl Into<Object>)
fn set_additional_data(self, value: impl Into<Object>)
set_AdditionalData(crate::system::object::Object) overload
Sourcefn get_metatable(self, value: impl Into<DynValue>) -> Table
fn get_metatable(self, value: impl Into<DynValue>) -> Table
GetMetatable(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn get_metamethod(
self,
value: impl Into<DynValue>,
metamethod: impl Into<Il2CppString>,
) -> DynValue
fn get_metamethod( self, value: impl Into<DynValue>, metamethod: impl Into<Il2CppString>, ) -> DynValue
GetMetamethod(crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Il2CppString) overload
Sourcefn get_metamethod_tail_call(
self,
value: impl Into<DynValue>,
metamethod: impl Into<Il2CppString>,
args: impl Into<Array<DynValue>>,
) -> DynValue
fn get_metamethod_tail_call( self, value: impl Into<DynValue>, metamethod: impl Into<Il2CppString>, args: impl Into<Array<DynValue>>, ) -> DynValue
GetMetamethodTailCall(crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Il2CppString, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload
Sourcefn get_binary_metamethod(
self,
op1: impl Into<DynValue>,
op2: impl Into<DynValue>,
event_name: impl Into<Il2CppString>,
) -> DynValue
fn get_binary_metamethod( self, op1: impl Into<DynValue>, op2: impl Into<DynValue>, event_name: impl Into<Il2CppString>, ) -> DynValue
GetBinaryMetamethod(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Il2CppString) overload
Sourcefn get_script(self) -> Script
fn get_script(self) -> Script
GetScript() overload
Sourcefn get_calling_coroutine(self) -> Coroutine_2
fn get_calling_coroutine(self) -> Coroutine_2
GetCallingCoroutine() overload
Sourcefn emulate_classic_call(
self,
args: impl Into<CallbackArguments>,
function_name: impl Into<Il2CppString>,
callback: impl Into<Func_2<LuaState, i32>>,
) -> DynValue
fn emulate_classic_call( self, args: impl Into<CallbackArguments>, function_name: impl Into<Il2CppString>, callback: impl Into<Func_2<LuaState, i32>>, ) -> DynValue
EmulateClassicCall(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, ::unity::Il2CppString, crate::system::func_2::Func_2<crate::moon_sharp::interpreter::interop::lua_state_interop::luastate::LuaState,i32>) overload
Sourcefn call(
self,
func: impl Into<DynValue>,
args: impl Into<Array<DynValue>>,
) -> DynValue
fn call( self, func: impl Into<DynValue>, args: impl Into<Array<DynValue>>, ) -> DynValue
Call(crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload
Sourcefn evaluate_symbol(self, symref: impl Into<SymbolRef>) -> DynValue
fn evaluate_symbol(self, symref: impl Into<SymbolRef>) -> DynValue
EvaluateSymbol(crate::moon_sharp::interpreter::symbolref::SymbolRef) overload
Sourcefn evaluate_symbol_by_name(self, symbol: impl Into<Il2CppString>) -> DynValue
fn evaluate_symbol_by_name(self, symbol: impl Into<Il2CppString>) -> DynValue
EvaluateSymbolByName(::unity::Il2CppString) overload
Sourcefn find_symbol_by_name(self, symbol: impl Into<Il2CppString>) -> SymbolRef
fn find_symbol_by_name(self, symbol: impl Into<Il2CppString>) -> SymbolRef
FindSymbolByName(::unity::Il2CppString) overload
Sourcefn get_current_global_env(self) -> Table
fn get_current_global_env(self) -> Table
get_CurrentGlobalEnv() overload
Sourcefn perform_message_decoration_before_unwind(
self,
message_handler: impl Into<DynValue>,
exception: impl Into<ScriptRuntimeException>,
)
fn perform_message_decoration_before_unwind( self, message_handler: impl Into<DynValue>, exception: impl Into<ScriptRuntimeException>, )
PerformMessageDecorationBeforeUnwind(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException) overload
Sourcefn get_owner_script(self) -> Script
fn get_owner_script(self) -> Script
get_OwnerScript() overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IScriptExecutionContext> IScriptExecutionContextMethods for __T
moon_sharp-interpreter-scriptexecutioncontext only.