Skip to main content

IEventFacadeMethods

Trait IEventFacadeMethods 

Source
pub trait IEventFacadeMethods: IEventFacade {
    // Provided methods
    fn ctor(
        self,
        parent: impl Into<EventMemberDescriptor>,
        obj: impl Into<Object>,
    ) { ... }
    fn ctor_2(
        self,
        add_callback: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, DynValue>>,
        remove_callback: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, DynValue>>,
        obj: impl Into<Object>,
    ) { ... }
    fn index(
        self,
        script: impl Into<Script>,
        index: impl Into<DynValue>,
        is_direct_indexing: impl Into<bool>,
    ) -> DynValue { ... }
    fn set_index(
        self,
        script: impl Into<Script>,
        index: impl Into<DynValue>,
        value: impl Into<DynValue>,
        is_direct_indexing: impl Into<bool>,
    ) -> bool { ... }
    fn meta_index(
        self,
        script: impl Into<Script>,
        metaname: impl Into<Il2CppString>,
    ) -> DynValue { ... }
}

Provided Methods§

Source

fn ctor(self, parent: impl Into<EventMemberDescriptor>, obj: impl Into<Object>)

.ctor(crate::moon_sharp::interpreter::interop::eventmemberdescriptor::EventMemberDescriptor, crate::system::object::Object) overload

Source

fn ctor_2( self, add_callback: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, DynValue>>, remove_callback: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, DynValue>>, obj: impl Into<Object>, )

.ctor(crate::system::func_4::Func_4<crate::system::object::Object,crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,crate::moon_sharp::interpreter::callbackarguments::CallbackArguments,crate::moon_sharp::interpreter::dynvalue::DynValue>, crate::system::func_4::Func_4<crate::system::object::Object,crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,crate::moon_sharp::interpreter::callbackarguments::CallbackArguments,crate::moon_sharp::interpreter::dynvalue::DynValue>, crate::system::object::Object) overload

Source

fn index( self, script: impl Into<Script>, index: impl Into<DynValue>, is_direct_indexing: impl Into<bool>, ) -> DynValue

Index(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::dynvalue::DynValue, bool) overload

Source

fn set_index( self, script: impl Into<Script>, index: impl Into<DynValue>, value: impl Into<DynValue>, is_direct_indexing: impl Into<bool>, ) -> bool

SetIndex(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue, bool) overload

Source

fn meta_index( self, script: impl Into<Script>, metaname: impl Into<Il2CppString>, ) -> DynValue

MetaIndex(crate::moon_sharp::interpreter::script::Script, ::unity::Il2CppString) 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: IEventFacade> IEventFacadeMethods for __T

Available on crate feature moon_sharp-interpreter-interop-standard_descriptors-eventfacade only.