pub trait IEmbeddedResourcesScriptLoaderMethods: IEmbeddedResourcesScriptLoader {
// Provided methods
fn ctor(self, resource_assembly: impl Into<Assembly>) { ... }
fn file_name_to_resource(
self,
file: impl Into<Il2CppString>,
) -> Il2CppString { ... }
fn script_file_exists(self, name: impl Into<Il2CppString>) -> bool { ... }
fn load_file(
self,
file: impl Into<Il2CppString>,
global_context: impl Into<Table>,
) -> Object { ... }
}Provided Methods§
Sourcefn ctor(self, resource_assembly: impl Into<Assembly>)
fn ctor(self, resource_assembly: impl Into<Assembly>)
.ctor(crate::system::reflection::assembly::Assembly) overload
Sourcefn file_name_to_resource(self, file: impl Into<Il2CppString>) -> Il2CppString
fn file_name_to_resource(self, file: impl Into<Il2CppString>) -> Il2CppString
FileNameToResource(::unity::Il2CppString) overload
Sourcefn script_file_exists(self, name: impl Into<Il2CppString>) -> bool
fn script_file_exists(self, name: impl Into<Il2CppString>) -> bool
ScriptFileExists(::unity::Il2CppString) overload
Sourcefn load_file(
self,
file: impl Into<Il2CppString>,
global_context: impl Into<Table>,
) -> Object
fn load_file( self, file: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> Object
LoadFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table) 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: IEmbeddedResourcesScriptLoader> IEmbeddedResourcesScriptLoaderMethods for __T
Available on crate feature
moon_sharp-interpreter-loaders-embeddedresourcesscriptloader only.