Skip to main content

engage/generated/moon_sharp/interpreter/interop/
delegateproxyfactory_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-interop-delegateproxyfactory_2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/interop/delegateproxyfactory_2/DelegateProxyFactory_2.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Interop", name = "DelegateProxyFactory`2")]
12    #[parent(crate::system::object::Object)]
13    pub struct DelegateProxyFactory_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
14        #[rename(name = "wrapDelegate")]
15        pub wrap_delegate: crate::system::func_2::Func_2<T1, T0>,
16    }
17}
18
19#[cfg(feature = "moon_sharp-interpreter-interop-delegateproxyfactory_2-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-interop-delegateproxyfactory_2")]
23#[::unity::methods]
24impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> DelegateProxyFactory_2<T0, T1> {
25    #[doc = "`.ctor(crate::system::func_2::Func_2<T1,T0>)` overload"]
26    #[method(name = ".ctor", args = 1)]
27    pub fn ctor(self, wrap_delegate: crate::system::func_2::Func_2<T1, T0>) -> ();
28
29    #[doc = "`CreateProxyObject(T1)` overload"]
30    #[method(name = "CreateProxyObject", args = 1)]
31    pub fn create_proxy_object(self, target: T1) -> T0;
32
33    #[doc = "`CreateProxyObject(crate::system::object::Object)` overload"]
34    #[method(name = "CreateProxyObject", args = 1)]
35    pub fn create_proxy_object_2(self, o: crate::system::object::Object) -> crate::system::object::Object;
36
37    #[doc = "`get_TargetType()` overload"]
38    #[method(name = "get_TargetType", args = 0)]
39    pub fn get_target_type(self) -> ::unity::SystemType;
40
41    #[doc = "`get_ProxyType()` overload"]
42    #[method(name = "get_ProxyType", args = 0)]
43    pub fn get_proxy_type(self) -> ::unity::SystemType;
44}
45
46#[cfg(feature = "moon_sharp-interpreter-interop-delegateproxyfactory_2")]
47impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> DelegateProxyFactory_2<T0, T1> {
48    #[doc = "`.ctor(crate::system::func_2::Func_2<T1,T0>)` — overload selector"]
49    pub fn new(wrap_delegate: crate::system::func_2::Func_2<T1, T0>) -> Self {
50        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
51            panic!(
52                "{}
53::{}
54 failed to instantiate",
55                ::core::stringify!(DelegateProxyFactory_2),
56                ::core::stringify!(new),
57            )
58        });
59        <Self as IDelegateProxyFactory_2Methods<T0, T1>>::ctor(this, wrap_delegate);
60        this
61    }
62}
63
64#[cfg(feature = "moon_sharp-interpreter-interop-delegateproxyfactory_2")]
65#[doc(hidden)]
66pub mod prelude {
67    pub use super::{DelegateProxyFactory_2, IDelegateProxyFactory_2, IDelegateProxyFactory_2Methods};
68    pub use crate::system::object::IObject;
69    #[cfg(feature = "system-object")]
70    pub use crate::system::object::IObjectMethods;
71}