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§
Sourcefn ctor(
self,
ei: impl Into<EventInfo>,
access_mode: impl Into<InteropAccessMode>,
)
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
Sourcefn get_event_info(self) -> EventInfo
fn get_event_info(self) -> EventInfo
get_EventInfo() overload
Sourcefn set_event_info(self, value: impl Into<EventInfo>)
fn set_event_info(self, value: impl Into<EventInfo>)
set_EventInfo(crate::system::reflection::eventinfo::EventInfo) overload
Sourcefn get_is_static(self) -> bool
fn get_is_static(self) -> bool
get_IsStatic() overload
Sourcefn set_is_static(self, value: impl Into<bool>)
fn set_is_static(self, value: impl Into<bool>)
set_IsStatic(bool) overload
Sourcefn get_value(
self,
script: impl Into<Script>,
obj: impl Into<Object>,
) -> DynValue
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
Sourcefn add_callback(
self,
o: impl Into<Object>,
context: impl Into<ScriptExecutionContext>,
args: impl Into<CallbackArguments>,
) -> DynValue
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
Sourcefn remove_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
RemoveCallback(crate::system::object::Object, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload
Sourcefn register_callback(self, o: impl Into<Object>)
fn register_callback(self, o: impl Into<Object>)
RegisterCallback(crate::system::object::Object) overload
Sourcefn unregister_callback(self, o: impl Into<Object>)
fn unregister_callback(self, o: impl Into<Object>)
UnregisterCallback(crate::system::object::Object) overload
Sourcefn create_delegate(self, sender: impl Into<Object>) -> Delegate
fn create_delegate(self, sender: impl Into<Object>) -> Delegate
CreateDelegate(crate::system::object::Object) overload
Sourcefn 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 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
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_Name() overload
Sourcefn get_member_access(self) -> MemberDescriptorAccess
fn get_member_access(self) -> MemberDescriptorAccess
get_MemberAccess() 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: IEventMemberDescriptor> IEventMemberDescriptorMethods for __T
moon_sharp-interpreter-interop-eventmemberdescriptor only.