Skip to main content

IScriptExecutionContextMethods

Trait IScriptExecutionContextMethods 

Source
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§

Source

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

Source

fn get_is_dynamic_execution(self) -> bool

get_IsDynamicExecution() overload

Source

fn set_is_dynamic_execution(self, value: impl Into<bool>)

set_IsDynamicExecution(bool) overload

Source

fn get_calling_location(self) -> SourceRef

get_CallingLocation() overload

Source

fn set_calling_location(self, value: impl Into<SourceRef>)

set_CallingLocation(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef) overload

Source

fn get_additional_data(self) -> Object

get_AdditionalData() overload

Source

fn set_additional_data(self, value: impl Into<Object>)

set_AdditionalData(crate::system::object::Object) overload

Source

fn get_metatable(self, value: impl Into<DynValue>) -> Table

GetMetatable(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn get_metamethod( self, value: impl Into<DynValue>, metamethod: impl Into<Il2CppString>, ) -> DynValue

GetMetamethod(crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Il2CppString) overload

Source

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

Source

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

Source

fn get_script(self) -> Script

GetScript() overload

Source

fn get_calling_coroutine(self) -> Coroutine_2

GetCallingCoroutine() overload

Source

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

Source

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

Source

fn evaluate_symbol(self, symref: impl Into<SymbolRef>) -> DynValue

EvaluateSymbol(crate::moon_sharp::interpreter::symbolref::SymbolRef) overload

Source

fn evaluate_symbol_by_name(self, symbol: impl Into<Il2CppString>) -> DynValue

EvaluateSymbolByName(::unity::Il2CppString) overload

Source

fn find_symbol_by_name(self, symbol: impl Into<Il2CppString>) -> SymbolRef

FindSymbolByName(::unity::Il2CppString) overload

Source

fn get_current_global_env(self) -> Table

get_CurrentGlobalEnv() overload

Source

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

Source

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§

Source§

impl<__T: IScriptExecutionContext> IScriptExecutionContextMethods for __T

Available on crate feature moon_sharp-interpreter-scriptexecutioncontext only.