Skip to main content

engage/generated/unity_engine/events/
invokablecall_4.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-events-invokablecall_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::baseinvokablecall::{BaseInvokableCall, IBaseInvokableCall},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/events/invokablecall_4/InvokableCall_4.md"))]
14    #[::unity::class(namespace = "UnityEngine.Events", name = "InvokableCall`4")]
15    #[parent(crate::unity_engine::events::baseinvokablecall::BaseInvokableCall)]
16    #[parent(crate::system::object::Object)]
17    pub struct InvokableCall_4<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity, T3: ::unity::ClassIdentity> {
18        #[rename(name = "Delegate")]
19        pub delegate: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>,
20    }
21}
22
23#[cfg(feature = "unity_engine-events-invokablecall_4-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-events-invokablecall_4")]
27#[::unity::methods]
28impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity, T3: ::unity::ClassIdentity> InvokableCall_4<T0, T1, T2, T3> {
29    #[doc = "`add_Delegate(crate::unity_engine::events::unityaction_4::UnityAction_4<T0,T1,T2,T3>)` overload"]
30    #[method(name = "add_Delegate", args = 1)]
31    pub fn add_delegate(self, value: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>) -> ();
32
33    #[doc = "`remove_Delegate(crate::unity_engine::events::unityaction_4::UnityAction_4<T0,T1,T2,T3>)` overload"]
34    #[method(name = "remove_Delegate", args = 1)]
35    pub fn remove_delegate(self, value: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>) -> ();
36
37    #[doc = "`.ctor(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo)` overload"]
38    #[method(name = ".ctor", args = 2)]
39    pub fn ctor(self, target: crate::system::object::Object, the_function: crate::system::reflection::methodinfo::MethodInfo) -> ();
40
41    #[doc = "`.ctor(crate::unity_engine::events::unityaction_4::UnityAction_4<T0,T1,T2,T3>)` overload"]
42    #[method(name = ".ctor", args = 1)]
43    pub fn ctor_2(self, action: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>) -> ();
44
45    #[doc = "`Invoke(::unity::Array<crate::system::object::Object>)` overload"]
46    #[method(name = "Invoke", args = 1)]
47    pub fn invoke(self, args: ::unity::Array<crate::system::object::Object>) -> ();
48
49    #[doc = "`Find(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo)` overload"]
50    #[method(name = "Find", args = 2)]
51    pub fn find(self, target_obj: crate::system::object::Object, method: crate::system::reflection::methodinfo::MethodInfo) -> bool;
52}
53
54#[cfg(feature = "unity_engine-events-invokablecall_4")]
55impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity, T3: ::unity::ClassIdentity> InvokableCall_4<T0, T1, T2, T3> {
56    #[doc = "`.ctor(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo)` — overload selector"]
57    pub fn new(target: crate::system::object::Object, the_function: crate::system::reflection::methodinfo::MethodInfo) -> Self {
58        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
59            panic!(
60                "{}
61::{}
62 failed to instantiate",
63                ::core::stringify!(InvokableCall_4),
64                ::core::stringify!(new),
65            )
66        });
67        <Self as IInvokableCall_4Methods<T0, T1, T2, T3>>::ctor(this, target, the_function);
68        this
69    }
70
71    #[doc = "`.ctor(crate::unity_engine::events::unityaction_4::UnityAction_4<T0,T1,T2,T3>)` — overload selector"]
72    pub fn new_2(action: crate::unity_engine::events::unityaction_4::UnityAction_4<T0, T1, T2, T3>) -> Self {
73        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
74            panic!(
75                "{}
76::{}
77 failed to instantiate",
78                ::core::stringify!(InvokableCall_4),
79                ::core::stringify!(new_2),
80            )
81        });
82        <Self as IInvokableCall_4Methods<T0, T1, T2, T3>>::ctor_2(this, action);
83        this
84    }
85}
86
87#[cfg(feature = "unity_engine-events-invokablecall_4")]
88#[doc(hidden)]
89pub mod prelude {
90    pub use super::{IInvokableCall_4, IInvokableCall_4Methods, InvokableCall_4};
91    #[cfg(feature = "system-object")]
92    pub use crate::system::object::IObjectMethods;
93    #[cfg(feature = "unity_engine-events-baseinvokablecall")]
94    pub use crate::unity_engine::events::baseinvokablecall::IBaseInvokableCallMethods;
95    pub use crate::{system::object::IObject, unity_engine::events::baseinvokablecall::IBaseInvokableCall};
96}