Skip to main content

IScriptMethods

Trait IScriptMethods 

Source
pub trait IScriptMethods: IScript {
Show 42 methods // Provided methods fn ctor(self) { ... } fn ctor_2(self, core_modules: impl Into<CoreModules>) { ... } fn get_options(self) -> ScriptOptions { ... } fn set_options(self, value: impl Into<ScriptOptions>) { ... } fn get_performance_stats(self) -> PerformanceStatistics { ... } fn set_performance_stats(self, value: impl Into<PerformanceStatistics>) { ... } fn get_globals(self) -> Table { ... } fn load_function( self, code: impl Into<Il2CppString>, global_table: impl Into<Table>, func_friendly_name: impl Into<Il2CppString>, ) -> DynValue { ... } fn signal_byte_code_change(self) { ... } fn signal_source_code_change(self, source: impl Into<SourceCode>) { ... } fn load_string( self, code: impl Into<Il2CppString>, global_table: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue { ... } fn load_stream( self, stream: impl Into<Stream>, global_table: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue { ... } fn dump(self, function: impl Into<DynValue>, stream: impl Into<Stream>) { ... } fn load_file( self, filename: impl Into<Il2CppString>, global_context: impl Into<Table>, friendly_filename: impl Into<Il2CppString>, ) -> DynValue { ... } fn do_string( self, code: impl Into<Il2CppString>, global_context: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue { ... } fn do_stream( self, stream: impl Into<Stream>, global_context: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue { ... } fn do_file( self, filename: impl Into<Il2CppString>, global_context: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue { ... } fn make_closure( self, address: impl Into<i32>, env_table: impl Into<Table>, ) -> DynValue { ... } fn call(self, function: impl Into<DynValue>) -> DynValue { ... } fn call_2( self, function: impl Into<DynValue>, args: impl Into<Array<DynValue>>, ) -> DynValue { ... } fn call_3( self, function: impl Into<DynValue>, args: impl Into<Array<Object>>, ) -> DynValue { ... } fn call_4(self, function: impl Into<Object>) -> DynValue { ... } fn call_5( self, function: impl Into<Object>, args: impl Into<Array<Object>>, ) -> DynValue { ... } fn create_coroutine(self, function: impl Into<DynValue>) -> DynValue { ... } fn create_coroutine_2(self, function: impl Into<Object>) -> DynValue { ... } fn get_debugger_enabled(self) -> bool { ... } fn set_debugger_enabled(self, value: impl Into<bool>) { ... } fn attach_debugger(self, debugger: impl Into<IDebugger>) { ... } fn get_source_code(self, source_code_id: impl Into<i32>) -> SourceCode { ... } fn get_source_code_count(self) -> i32 { ... } fn require_module( self, modname: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> DynValue { ... } fn get_type_metatable(self, type: impl Into<DataType>) -> Table { ... } fn set_type_metatable( self, type: impl Into<DataType>, metatable: impl Into<Table>, ) { ... } fn create_dynamic_expression( self, code: impl Into<Il2CppString>, ) -> DynamicExpression { ... } fn create_constant_dynamic_expression( self, code: impl Into<Il2CppString>, constant: impl Into<DynValue>, ) -> DynamicExpression { ... } fn create_dynamic_execution_context( self, func: impl Into<CallbackFunction>, ) -> ScriptExecutionContext { ... } fn get_registry(self) -> Table { ... } fn set_registry(self, value: impl Into<Table>) { ... } fn moon_sharp_interpreter_i_script_private_resource_get_owner_script( self, ) -> Script { ... } fn get_line(self, i_address: impl Into<i32>) -> i32 { ... } fn get_line_2(self, item: impl Into<WatchItem>) -> i32 { ... } fn get_source_ref(self, i_address: impl Into<i32>) -> SourceRef { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, core_modules: impl Into<CoreModules>)

.ctor(crate::moon_sharp::interpreter::coremodules::CoreModules) overload

Source

fn get_options(self) -> ScriptOptions

get_Options() overload

Source

fn set_options(self, value: impl Into<ScriptOptions>)

set_Options(crate::moon_sharp::interpreter::scriptoptions::ScriptOptions) overload

Source

fn get_performance_stats(self) -> PerformanceStatistics

get_PerformanceStats() overload

Source

fn set_performance_stats(self, value: impl Into<PerformanceStatistics>)

set_PerformanceStats(crate::moon_sharp::interpreter::diagnostics::performancestatistics::PerformanceStatistics) overload

Source

fn get_globals(self) -> Table

get_Globals() overload

Source

fn load_function( self, code: impl Into<Il2CppString>, global_table: impl Into<Table>, func_friendly_name: impl Into<Il2CppString>, ) -> DynValue

LoadFunction(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload

Source

fn signal_byte_code_change(self)

SignalByteCodeChange() overload

Source

fn signal_source_code_change(self, source: impl Into<SourceCode>)

SignalSourceCodeChange(crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode) overload

Source

fn load_string( self, code: impl Into<Il2CppString>, global_table: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue

LoadString(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload

Source

fn load_stream( self, stream: impl Into<Stream>, global_table: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue

LoadStream(crate::system::io::stream::Stream, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload

Source

fn dump(self, function: impl Into<DynValue>, stream: impl Into<Stream>)

Dump(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::system::io::stream::Stream) overload

Source

fn load_file( self, filename: impl Into<Il2CppString>, global_context: impl Into<Table>, friendly_filename: impl Into<Il2CppString>, ) -> DynValue

LoadFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload

Source

fn do_string( self, code: impl Into<Il2CppString>, global_context: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue

DoString(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload

Source

fn do_stream( self, stream: impl Into<Stream>, global_context: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue

DoStream(crate::system::io::stream::Stream, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload

Source

fn do_file( self, filename: impl Into<Il2CppString>, global_context: impl Into<Table>, code_friendly_name: impl Into<Il2CppString>, ) -> DynValue

DoFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload

Source

fn make_closure( self, address: impl Into<i32>, env_table: impl Into<Table>, ) -> DynValue

MakeClosure(i32, crate::moon_sharp::interpreter::table::Table) overload

Source

fn call(self, function: impl Into<DynValue>) -> DynValue

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

Source

fn call_2( self, function: 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 call_3( self, function: impl Into<DynValue>, args: impl Into<Array<Object>>, ) -> DynValue

Call(crate::moon_sharp::interpreter::dynvalue::DynValue, ::unity::Array<crate::system::object::Object>) overload

Source

fn call_4(self, function: impl Into<Object>) -> DynValue

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

Source

fn call_5( self, function: impl Into<Object>, args: impl Into<Array<Object>>, ) -> DynValue

Call(crate::system::object::Object, ::unity::Array<crate::system::object::Object>) overload

Source

fn create_coroutine(self, function: impl Into<DynValue>) -> DynValue

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

Source

fn create_coroutine_2(self, function: impl Into<Object>) -> DynValue

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

Source

fn get_debugger_enabled(self) -> bool

get_DebuggerEnabled() overload

Source

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

set_DebuggerEnabled(bool) overload

Source

fn attach_debugger(self, debugger: impl Into<IDebugger>)

AttachDebugger(crate::moon_sharp::interpreter::debugging::idebugger::IDebugger) overload

Source

fn get_source_code(self, source_code_id: impl Into<i32>) -> SourceCode

GetSourceCode(i32) overload

Source

fn get_source_code_count(self) -> i32

get_SourceCodeCount() overload

Source

fn require_module( self, modname: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> DynValue

RequireModule(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table) overload

Source

fn get_type_metatable(self, type: impl Into<DataType>) -> Table

GetTypeMetatable(crate::moon_sharp::interpreter::datatype::DataType) overload

Source

fn set_type_metatable( self, type: impl Into<DataType>, metatable: impl Into<Table>, )

SetTypeMetatable(crate::moon_sharp::interpreter::datatype::DataType, crate::moon_sharp::interpreter::table::Table) overload

Source

fn create_dynamic_expression( self, code: impl Into<Il2CppString>, ) -> DynamicExpression

CreateDynamicExpression(::unity::Il2CppString) overload

Source

fn create_constant_dynamic_expression( self, code: impl Into<Il2CppString>, constant: impl Into<DynValue>, ) -> DynamicExpression

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

Source

fn create_dynamic_execution_context( self, func: impl Into<CallbackFunction>, ) -> ScriptExecutionContext

CreateDynamicExecutionContext(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction) overload

Source

fn get_registry(self) -> Table

get_Registry() overload

Source

fn set_registry(self, value: impl Into<Table>)

set_Registry(crate::moon_sharp::interpreter::table::Table) overload

Source

fn moon_sharp_interpreter_i_script_private_resource_get_owner_script( self, ) -> Script

MoonSharp.Interpreter.IScriptPrivateResource.get_OwnerScript() overload

Source

fn get_line(self, i_address: impl Into<i32>) -> i32

GetLine(i32) overload

Source

fn get_line_2(self, item: impl Into<WatchItem>) -> i32

GetLine(crate::moon_sharp::interpreter::debugging::watchitem::WatchItem) overload

Source

fn get_source_ref(self, i_address: impl Into<i32>) -> SourceRef

GetSourceRef(i32) 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: IScript> IScriptMethods for __T

Available on crate feature moon_sharp-interpreter-script only.