Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-interop-anonwrapper_1-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        moon_sharp::interpreter::interop::anonwrapper::{AnonWrapper, IAnonWrapper},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/interop/anonwrapper_1/AnonWrapper_1.md"))]
14    #[::unity::class(namespace = "MoonSharp.Interpreter.Interop", name = "AnonWrapper`1")]
15    #[parent(crate::moon_sharp::interpreter::interop::anonwrapper::AnonWrapper)]
16    #[parent(crate::system::object::Object)]
17    pub struct AnonWrapper_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "moon_sharp-interpreter-interop-anonwrapper_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-interop-anonwrapper_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> AnonWrapper_1<T0> {
26    #[doc = "`.ctor()` overload"]
27    #[method(name = ".ctor", args = 0)]
28    pub fn ctor(self) -> ();
29
30    #[doc = "`.ctor(T0)` overload"]
31    #[method(name = ".ctor", args = 1)]
32    pub fn ctor_2(self, o: T0) -> ();
33
34    #[doc = "`get_Value()` overload"]
35    #[method(name = "get_Value", args = 0)]
36    pub fn get_value(self) -> T0;
37
38    #[doc = "`set_Value(T0)` overload"]
39    #[method(name = "set_Value", args = 1)]
40    pub fn set_value(self, value: T0) -> ();
41}
42
43#[cfg(feature = "moon_sharp-interpreter-interop-anonwrapper_1")]
44impl<T0: ::unity::ClassIdentity> AnonWrapper_1<T0> {
45    #[doc = "`.ctor()` — no args"]
46    pub fn new() -> Self {
47        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
48            panic!(
49                "{}
50::{}
51 failed to instantiate",
52                ::core::stringify!(AnonWrapper_1),
53                ::core::stringify!(new),
54            )
55        });
56        <Self as IAnonWrapper_1Methods<T0>>::ctor(this);
57        this
58    }
59
60    #[doc = "`.ctor(T0)` — overload selector"]
61    pub fn new_2(o: T0) -> Self {
62        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63            panic!(
64                "{}
65::{}
66 failed to instantiate",
67                ::core::stringify!(AnonWrapper_1),
68                ::core::stringify!(new_2),
69            )
70        });
71        <Self as IAnonWrapper_1Methods<T0>>::ctor_2(this, o);
72        this
73    }
74}
75
76#[cfg(feature = "moon_sharp-interpreter-interop-anonwrapper_1")]
77#[doc(hidden)]
78pub mod prelude {
79    pub use super::{AnonWrapper_1, IAnonWrapper_1, IAnonWrapper_1Methods};
80    #[cfg(feature = "moon_sharp-interpreter-interop-anonwrapper")]
81    pub use crate::moon_sharp::interpreter::interop::anonwrapper::IAnonWrapperMethods;
82    #[cfg(feature = "system-object")]
83    pub use crate::system::object::IObjectMethods;
84    pub use crate::{moon_sharp::interpreter::interop::anonwrapper::IAnonWrapper, system::object::IObject};
85}