Skip to main content

IScriptLoaderBaseMethods

Trait IScriptLoaderBaseMethods 

Source
pub trait IScriptLoaderBaseMethods: IScriptLoaderBase {
    // Provided methods
    fn script_file_exists(self, name: impl Into<Il2CppString>) -> bool { ... }
    fn load_file(
        self,
        file: impl Into<Il2CppString>,
        global_context: impl Into<Table>,
    ) -> Object { ... }
    fn resolve_module_name(
        self,
        modname: impl Into<Il2CppString>,
        paths: impl Into<Array<Il2CppString>>,
    ) -> Il2CppString { ... }
    fn resolve_module_name_2(
        self,
        modname: impl Into<Il2CppString>,
        global_context: impl Into<Table>,
    ) -> Il2CppString { ... }
    fn get_module_paths(self) -> Array<Il2CppString> { ... }
    fn set_module_paths(self, value: impl Into<Array<Il2CppString>>) { ... }
    fn resolve_file_name(
        self,
        filename: impl Into<Il2CppString>,
        global_context: impl Into<Table>,
    ) -> Il2CppString { ... }
    fn get_ignore_lua_path_global(self) -> bool { ... }
    fn set_ignore_lua_path_global(self, value: impl Into<bool>) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn script_file_exists(self, name: impl Into<Il2CppString>) -> bool

ScriptFileExists(::unity::Il2CppString) overload

Source

fn load_file( self, file: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> Object

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

Source

fn resolve_module_name( self, modname: impl Into<Il2CppString>, paths: impl Into<Array<Il2CppString>>, ) -> Il2CppString

ResolveModuleName(::unity::Il2CppString, ::unity::Array<::unity::Il2CppString>) overload

Source

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

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

Source

fn get_module_paths(self) -> Array<Il2CppString>

get_ModulePaths() overload

Source

fn set_module_paths(self, value: impl Into<Array<Il2CppString>>)

set_ModulePaths(::unity::Array<::unity::Il2CppString>) overload

Source

fn resolve_file_name( self, filename: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> Il2CppString

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

Source

fn get_ignore_lua_path_global(self) -> bool

get_IgnoreLuaPathGlobal() overload

Source

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

set_IgnoreLuaPathGlobal(bool) overload

Source

fn ctor(self)

.ctor() 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: IScriptLoaderBase> IScriptLoaderBaseMethods for __T

Available on crate feature moon_sharp-interpreter-loaders-scriptloaderbase only.