engage/generated/system/
func_3.rs1#[cfg(feature = "system-func_3-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/func_3/Func_3.md"))]
15 #[::unity::class(namespace = "System", name = "Func`3")]
16 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17 #[parent(crate::system::delegate::Delegate)]
18 #[parent(crate::system::object::Object)]
19 pub struct Func_3<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity> {}
20}
21
22#[cfg(feature = "system-func_3-types")]
23pub use __types::*;
24
25#[cfg(feature = "system-func_3")]
26#[::unity::methods]
27impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity> Func_3<T0, T1, T2> {
28 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
29 #[method(name = ".ctor", args = 2)]
30 pub fn ctor(self, object: crate::system::object::Object, method: ::unity::IntPtr) -> ();
31
32 #[doc = "`Invoke(T0, T1)` overload"]
33 #[method(name = "Invoke", args = 2)]
34 pub fn invoke(self, arg1: T0, arg2: T1) -> T2;
35}
36
37#[cfg(feature = "system-func_3")]
38impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity, T2: ::unity::ClassIdentity> Func_3<T0, T1, T2> {
39 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
40 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
41 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
42 panic!(
43 "{}
44::{}
45 failed to instantiate",
46 ::core::stringify!(Func_3),
47 ::core::stringify!(new),
48 )
49 });
50 <Self as IFunc_3Methods<T0, T1, T2>>::ctor(this, object, method);
51 this
52 }
53}
54
55#[cfg(feature = "system-func_3")]
56#[doc(hidden)]
57pub mod prelude {
58 pub use super::{Func_3, IFunc_3, IFunc_3Methods};
59 #[cfg(feature = "system-delegate")]
60 pub use crate::system::delegate::IDelegateMethods;
61 #[cfg(feature = "system-multicastdelegate")]
62 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
63 #[cfg(feature = "system-object")]
64 pub use crate::system::object::IObjectMethods;
65 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
66}