engage/generated/unity_engine/events/
unityevent_4.rs1#[cfg(feature = "unity_engine-events-unityevent_4-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::events::unityeventbase::{IUnityEventBase, UnityEventBase},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/events/unityevent_4/UnityEvent_4.md"))]
14 #[::unity::class(namespace = "UnityEngine.Events", name = "UnityEvent`4")]
15 #[parent(crate::unity_engine::events::unityeventbase::UnityEventBase)]
16 #[parent(crate::system::object::Object)]
17 pub struct UnityEvent_4<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity, T3: ::unity::ClassIdentity> {
18 #[rename(name = "m_InvokeArray")]
19 pub m_invoke_array: ::unity::Array<crate::system::object::Object>,
20 }
21}
22
23#[cfg(feature = "unity_engine-events-unityevent_4-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-events-unityevent_4")]
27#[::unity::methods]
28impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity, T3: ::unity::ClassIdentity> UnityEvent_4<T0, T1, T2, T3> {
29 #[doc = "`.ctor()` overload"]
30 #[method(name = ".ctor", args = 0)]
31 pub fn ctor(self) -> ();
32
33 #[doc = "`AddListener(crate::unity_engine::events::unityaction_4::UnityAction_4<T0,T1,T2,T3>)` overload"]
34 #[method(name = "AddListener", args = 1)]
35 pub fn add_listener(self, call: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>) -> ();
36
37 #[doc = "`RemoveListener(crate::unity_engine::events::unityaction_4::UnityAction_4<T0,T1,T2,T3>)` overload"]
38 #[method(name = "RemoveListener", args = 1)]
39 pub fn remove_listener(self, call: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>) -> ();
40
41 #[doc = "`FindMethod_Impl(::unity::Il2CppString, ::unity::SystemType)` overload"]
42 #[method(name = "FindMethod_Impl", args = 2)]
43 pub fn find_method_impl(
44 self,
45 name: ::unity::Il2CppString,
46 target_obj_type: ::unity::SystemType,
47 ) -> crate::system::reflection::methodinfo::MethodInfo;
48
49 #[doc = "`GetDelegate(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo)` overload"]
50 #[method(name = "GetDelegate", args = 2)]
51 pub fn get_delegate(
52 self,
53 target: crate::system::object::Object,
54 the_function: crate::system::reflection::methodinfo::MethodInfo,
55 ) -> crate::unity_engine::events::baseinvokablecall::BaseInvokableCall;
56
57 #[doc = "`GetDelegate(crate::unity_engine::events::unityaction_4::UnityAction_4<T0,T1,T2,T3>)` overload"]
58 #[method(name = "GetDelegate", args = 1)]
59 pub fn get_delegate_2(
60 action: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>,
61 ) -> crate::unity_engine::events::baseinvokablecall::BaseInvokableCall;
62}
63
64#[cfg(feature = "unity_engine-events-unityevent_4")]
65impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity, T3: ::unity::ClassIdentity> UnityEvent_4<T0, T1, T2, T3> {
66 #[doc = "`.ctor()` — no args"]
67 pub fn new() -> Self {
68 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
69 panic!(
70 "{}
71::{}
72 failed to instantiate",
73 ::core::stringify!(UnityEvent_4),
74 ::core::stringify!(new),
75 )
76 });
77 <Self as IUnityEvent_4Methods<T0, T1, T2, T3>>::ctor(this);
78 this
79 }
80}
81
82#[cfg(feature = "unity_engine-events-unityevent_4")]
83#[doc(hidden)]
84pub mod prelude {
85 pub use super::{IUnityEvent_4, IUnityEvent_4Methods, UnityEvent_4};
86 #[cfg(feature = "system-object")]
87 pub use crate::system::object::IObjectMethods;
88 #[cfg(feature = "unity_engine-events-unityeventbase")]
89 pub use crate::unity_engine::events::unityeventbase::IUnityEventBaseMethods;
90 pub use crate::{system::object::IObject, unity_engine::events::unityeventbase::IUnityEventBase};
91}