Skip to main content

engage/generated/unity_engine/events/
cachedinvokablecall_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-events-cachedinvokablecall_1-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::{
11            baseinvokablecall::{BaseInvokableCall, IBaseInvokableCall},
12            invokablecall_1::{IInvokableCall_1, InvokableCall_1},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/events/cachedinvokablecall_1/CachedInvokableCall_1.md"))]
17    #[::unity::class(namespace = "UnityEngine.Events", name = "CachedInvokableCall`1")]
18    #[parent(crate::unity_engine::events::invokablecall_1::InvokableCall_1<T0>)]
19    #[parent(crate::unity_engine::events::baseinvokablecall::BaseInvokableCall)]
20    #[parent(crate::system::object::Object)]
21    pub struct CachedInvokableCall_1<T0: ::unity::ClassIdentity> {
22        #[rename(name = "m_Arg1")]
23        pub m_arg1: T0,
24    }
25}
26
27#[cfg(feature = "unity_engine-events-cachedinvokablecall_1-types")]
28pub use __types::*;
29
30#[cfg(feature = "unity_engine-events-cachedinvokablecall_1")]
31#[::unity::methods]
32impl<T0: ::unity::ClassIdentity> CachedInvokableCall_1<T0> {
33    #[doc = "`.ctor(crate::unity_engine::object_2::Object_2, crate::system::reflection::methodinfo::MethodInfo, T0)` overload"]
34    #[method(name = ".ctor", args = 3)]
35    pub fn ctor(
36        self,
37        target: crate::unity_engine::object_2::Object_2,
38        the_function: crate::system::reflection::methodinfo::MethodInfo,
39        argument: T0,
40    ) -> ();
41
42    #[doc = "`Invoke(::unity::Array<crate::system::object::Object>)` overload"]
43    #[method(name = "Invoke", args = 1)]
44    pub fn invoke(self, args: ::unity::Array<crate::system::object::Object>) -> ();
45
46    #[doc = "`Invoke(T0)` overload"]
47    #[method(name = "Invoke", args = 1)]
48    pub fn invoke_2(self, arg0: T0) -> ();
49}
50
51#[cfg(feature = "unity_engine-events-cachedinvokablecall_1")]
52impl<T0: ::unity::ClassIdentity> CachedInvokableCall_1<T0> {
53    #[doc = "`.ctor(crate::unity_engine::object_2::Object_2, crate::system::reflection::methodinfo::MethodInfo, T0)` — overload selector"]
54    pub fn new(
55        target: crate::unity_engine::object_2::Object_2,
56        the_function: crate::system::reflection::methodinfo::MethodInfo,
57        argument: T0,
58    ) -> Self {
59        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
60            panic!(
61                "{}
62::{}
63 failed to instantiate",
64                ::core::stringify!(CachedInvokableCall_1),
65                ::core::stringify!(new),
66            )
67        });
68        <Self as ICachedInvokableCall_1Methods<T0>>::ctor(this, target, the_function, argument);
69        this
70    }
71}
72
73#[cfg(feature = "unity_engine-events-cachedinvokablecall_1")]
74#[doc(hidden)]
75pub mod prelude {
76    pub use super::{CachedInvokableCall_1, ICachedInvokableCall_1, ICachedInvokableCall_1Methods};
77    #[cfg(feature = "system-object")]
78    pub use crate::system::object::IObjectMethods;
79    #[cfg(feature = "unity_engine-events-baseinvokablecall")]
80    pub use crate::unity_engine::events::baseinvokablecall::IBaseInvokableCallMethods;
81    #[cfg(feature = "unity_engine-events-invokablecall_1")]
82    pub use crate::unity_engine::events::invokablecall_1::IInvokableCall_1Methods;
83    pub use crate::{
84        system::object::IObject,
85        unity_engine::events::{
86            baseinvokablecall::IBaseInvokableCall,
87            invokablecall_1::{IInvokableCall_1, InvokableCall_1},
88        },
89    };
90}