Skip to main content

IEventMemberDescriptorMethods

Trait IEventMemberDescriptorMethods 

Source
pub trait IEventMemberDescriptorMethods: IEventMemberDescriptor {
Show 15 methods // Provided methods fn ctor( self, ei: impl Into<EventInfo>, access_mode: impl Into<InteropAccessMode>, ) { ... } fn get_event_info(self) -> EventInfo { ... } fn set_event_info(self, value: impl Into<EventInfo>) { ... } fn get_is_static(self) -> bool { ... } fn set_is_static(self, value: impl Into<bool>) { ... } fn get_value( self, script: impl Into<Script>, obj: impl Into<Object>, ) -> DynValue { ... } fn add_callback( self, o: impl Into<Object>, context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn remove_callback( self, o: impl Into<Object>, context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn register_callback(self, o: impl Into<Object>) { ... } fn unregister_callback(self, o: impl Into<Object>) { ... } fn create_delegate(self, sender: impl Into<Object>) -> Delegate { ... } fn dispatch_event( self, sender: impl Into<Object>, o01: impl Into<IlInstance>, o02: impl Into<IlInstance>, o03: impl Into<IlInstance>, o04: impl Into<IlInstance>, o05: impl Into<IlInstance>, o06: impl Into<IlInstance>, o07: impl Into<IlInstance>, o08: impl Into<IlInstance>, o09: impl Into<IlInstance>, o10: impl Into<IlInstance>, o11: impl Into<IlInstance>, o12: impl Into<IlInstance>, o13: impl Into<IlInstance>, o14: impl Into<IlInstance>, o15: impl Into<IlInstance>, o16: impl Into<IlInstance>, ) { ... } fn get_name(self) -> Il2CppString { ... } fn get_member_access(self) -> MemberDescriptorAccess { ... } fn set_value( self, script: impl Into<Script>, obj: impl Into<Object>, v: impl Into<DynValue>, ) { ... }
}

Provided Methods§

Source

fn ctor( self, ei: impl Into<EventInfo>, access_mode: impl Into<InteropAccessMode>, )

.ctor(crate::system::reflection::eventinfo::EventInfo, crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode) overload

Source

fn get_event_info(self) -> EventInfo

get_EventInfo() overload

Source

fn set_event_info(self, value: impl Into<EventInfo>)

set_EventInfo(crate::system::reflection::eventinfo::EventInfo) overload

Source

fn get_is_static(self) -> bool

get_IsStatic() overload

Source

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

set_IsStatic(bool) overload

Source

fn get_value( self, script: impl Into<Script>, obj: impl Into<Object>, ) -> DynValue

GetValue(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object) overload

Source

fn add_callback( self, o: impl Into<Object>, context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

AddCallback(crate::system::object::Object, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn remove_callback( self, o: impl Into<Object>, context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

RemoveCallback(crate::system::object::Object, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn register_callback(self, o: impl Into<Object>)

RegisterCallback(crate::system::object::Object) overload

Source

fn unregister_callback(self, o: impl Into<Object>)

UnregisterCallback(crate::system::object::Object) overload

Source

fn create_delegate(self, sender: impl Into<Object>) -> Delegate

CreateDelegate(crate::system::object::Object) overload

Source

fn dispatch_event( self, sender: impl Into<Object>, o01: impl Into<IlInstance>, o02: impl Into<IlInstance>, o03: impl Into<IlInstance>, o04: impl Into<IlInstance>, o05: impl Into<IlInstance>, o06: impl Into<IlInstance>, o07: impl Into<IlInstance>, o08: impl Into<IlInstance>, o09: impl Into<IlInstance>, o10: impl Into<IlInstance>, o11: impl Into<IlInstance>, o12: impl Into<IlInstance>, o13: impl Into<IlInstance>, o14: impl Into<IlInstance>, o15: impl Into<IlInstance>, o16: impl Into<IlInstance>, )

DispatchEvent(crate::system::object::Object, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance, ::unity::IlInstance) overload

Source

fn get_name(self) -> Il2CppString

get_Name() overload

Source

fn get_member_access(self) -> MemberDescriptorAccess

get_MemberAccess() overload

Source

fn set_value( self, script: impl Into<Script>, obj: impl Into<Object>, v: impl Into<DynValue>, )

SetValue(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, crate::moon_sharp::interpreter::dynvalue::DynValue) 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: IEventMemberDescriptor> IEventMemberDescriptorMethods for __T

Available on crate feature moon_sharp-interpreter-interop-eventmemberdescriptor only.