Skip to main content

IEmbeddedResourcesScriptLoaderMethods

Trait IEmbeddedResourcesScriptLoaderMethods 

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

Source

fn ctor(self, resource_assembly: impl Into<Assembly>)

.ctor(crate::system::reflection::assembly::Assembly) overload

Source

fn file_name_to_resource(self, file: impl Into<Il2CppString>) -> Il2CppString

FileNameToResource(::unity::Il2CppString) overload

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

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: IEmbeddedResourcesScriptLoader> IEmbeddedResourcesScriptLoaderMethods for __T

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