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§
Sourcefn ctor_2(self, core_modules: impl Into<CoreModules>)
fn ctor_2(self, core_modules: impl Into<CoreModules>)
.ctor(crate::moon_sharp::interpreter::coremodules::CoreModules) overload
Sourcefn get_options(self) -> ScriptOptions
fn get_options(self) -> ScriptOptions
get_Options() overload
Sourcefn set_options(self, value: impl Into<ScriptOptions>)
fn set_options(self, value: impl Into<ScriptOptions>)
set_Options(crate::moon_sharp::interpreter::scriptoptions::ScriptOptions) overload
Sourcefn get_performance_stats(self) -> PerformanceStatistics
fn get_performance_stats(self) -> PerformanceStatistics
get_PerformanceStats() overload
Sourcefn set_performance_stats(self, value: impl Into<PerformanceStatistics>)
fn set_performance_stats(self, value: impl Into<PerformanceStatistics>)
set_PerformanceStats(crate::moon_sharp::interpreter::diagnostics::performancestatistics::PerformanceStatistics) overload
Sourcefn get_globals(self) -> Table
fn get_globals(self) -> Table
get_Globals() overload
Sourcefn load_function(
self,
code: impl Into<Il2CppString>,
global_table: impl Into<Table>,
func_friendly_name: impl Into<Il2CppString>,
) -> DynValue
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
Sourcefn signal_byte_code_change(self)
fn signal_byte_code_change(self)
SignalByteCodeChange() overload
Sourcefn signal_source_code_change(self, source: impl Into<SourceCode>)
fn signal_source_code_change(self, source: impl Into<SourceCode>)
SignalSourceCodeChange(crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode) overload
Sourcefn load_string(
self,
code: impl Into<Il2CppString>,
global_table: impl Into<Table>,
code_friendly_name: impl Into<Il2CppString>,
) -> DynValue
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
Sourcefn load_stream(
self,
stream: impl Into<Stream>,
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
LoadStream(crate::system::io::stream::Stream, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload
Sourcefn dump(self, function: impl Into<DynValue>, stream: impl Into<Stream>)
fn dump(self, function: impl Into<DynValue>, stream: impl Into<Stream>)
Dump(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::system::io::stream::Stream) overload
Sourcefn load_file(
self,
filename: impl Into<Il2CppString>,
global_context: impl Into<Table>,
friendly_filename: impl Into<Il2CppString>,
) -> DynValue
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
Sourcefn do_string(
self,
code: impl Into<Il2CppString>,
global_context: impl Into<Table>,
code_friendly_name: impl Into<Il2CppString>,
) -> DynValue
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
Sourcefn do_stream(
self,
stream: impl Into<Stream>,
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
DoStream(crate::system::io::stream::Stream, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload
Sourcefn do_file(
self,
filename: impl Into<Il2CppString>,
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
DoFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table, ::unity::Il2CppString) overload
Sourcefn make_closure(
self,
address: impl Into<i32>,
env_table: impl Into<Table>,
) -> DynValue
fn make_closure( self, address: impl Into<i32>, env_table: impl Into<Table>, ) -> DynValue
MakeClosure(i32, crate::moon_sharp::interpreter::table::Table) overload
Sourcefn call(self, function: impl Into<DynValue>) -> DynValue
fn call(self, function: impl Into<DynValue>) -> DynValue
Call(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn call_2(
self,
function: impl Into<DynValue>,
args: impl Into<Array<DynValue>>,
) -> DynValue
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
Sourcefn call_3(
self,
function: impl Into<DynValue>,
args: impl Into<Array<Object>>,
) -> DynValue
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
Sourcefn call_4(self, function: impl Into<Object>) -> DynValue
fn call_4(self, function: impl Into<Object>) -> DynValue
Call(crate::system::object::Object) overload
Sourcefn call_5(
self,
function: impl Into<Object>,
args: impl Into<Array<Object>>,
) -> DynValue
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
Sourcefn create_coroutine(self, function: impl Into<DynValue>) -> DynValue
fn create_coroutine(self, function: impl Into<DynValue>) -> DynValue
CreateCoroutine(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn create_coroutine_2(self, function: impl Into<Object>) -> DynValue
fn create_coroutine_2(self, function: impl Into<Object>) -> DynValue
CreateCoroutine(crate::system::object::Object) overload
Sourcefn get_debugger_enabled(self) -> bool
fn get_debugger_enabled(self) -> bool
get_DebuggerEnabled() overload
Sourcefn set_debugger_enabled(self, value: impl Into<bool>)
fn set_debugger_enabled(self, value: impl Into<bool>)
set_DebuggerEnabled(bool) overload
Sourcefn attach_debugger(self, debugger: impl Into<IDebugger>)
fn attach_debugger(self, debugger: impl Into<IDebugger>)
AttachDebugger(crate::moon_sharp::interpreter::debugging::idebugger::IDebugger) overload
Sourcefn get_source_code(self, source_code_id: impl Into<i32>) -> SourceCode
fn get_source_code(self, source_code_id: impl Into<i32>) -> SourceCode
GetSourceCode(i32) overload
Sourcefn get_source_code_count(self) -> i32
fn get_source_code_count(self) -> i32
get_SourceCodeCount() overload
Sourcefn require_module(
self,
modname: impl Into<Il2CppString>,
global_context: impl Into<Table>,
) -> DynValue
fn require_module( self, modname: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> DynValue
RequireModule(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table) overload
Sourcefn get_type_metatable(self, type: impl Into<DataType>) -> Table
fn get_type_metatable(self, type: impl Into<DataType>) -> Table
GetTypeMetatable(crate::moon_sharp::interpreter::datatype::DataType) overload
Sourcefn set_type_metatable(
self,
type: impl Into<DataType>,
metatable: impl Into<Table>,
)
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
Sourcefn create_dynamic_expression(
self,
code: impl Into<Il2CppString>,
) -> DynamicExpression
fn create_dynamic_expression( self, code: impl Into<Il2CppString>, ) -> DynamicExpression
CreateDynamicExpression(::unity::Il2CppString) overload
Sourcefn create_constant_dynamic_expression(
self,
code: impl Into<Il2CppString>,
constant: impl Into<DynValue>,
) -> DynamicExpression
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
Sourcefn create_dynamic_execution_context(
self,
func: impl Into<CallbackFunction>,
) -> ScriptExecutionContext
fn create_dynamic_execution_context( self, func: impl Into<CallbackFunction>, ) -> ScriptExecutionContext
CreateDynamicExecutionContext(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction) overload
Sourcefn get_registry(self) -> Table
fn get_registry(self) -> Table
get_Registry() overload
Sourcefn set_registry(self, value: impl Into<Table>)
fn set_registry(self, value: impl Into<Table>)
set_Registry(crate::moon_sharp::interpreter::table::Table) overload
Sourcefn moon_sharp_interpreter_i_script_private_resource_get_owner_script(
self,
) -> Script
fn moon_sharp_interpreter_i_script_private_resource_get_owner_script( self, ) -> Script
MoonSharp.Interpreter.IScriptPrivateResource.get_OwnerScript() overload
Sourcefn get_line_2(self, item: impl Into<WatchItem>) -> i32
fn get_line_2(self, item: impl Into<WatchItem>) -> i32
GetLine(crate::moon_sharp::interpreter::debugging::watchitem::WatchItem) overload
Sourcefn get_source_ref(self, i_address: impl Into<i32>) -> SourceRef
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§
impl<__T: IScript> IScriptMethods for __T
moon_sharp-interpreter-script only.