Skip to main content

engage/generated/moon_sharp/interpreter/
moonsharppropertyattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/moonsharppropertyattribute/MoonSharpPropertyAttribute.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "MoonSharpPropertyAttribute")]
11    pub struct MoonSharpPropertyAttribute {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __MoonSharpPropertyAttribute_unity_raw {
21    use super::*;
22    #[doc(hidden)]
23    #[allow(non_snake_case)]
24    pub mod __lookup_get_name {
25        use super::*;
26        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
27            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
28            ::unity::lookup::method_info_on_class_with_signature(
29                <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::class(),
30                "get_Name",
31                0,
32                param_types,
33                false,
34            )
35        });
36        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37            match &*METHOD {
38                ::core::result::Result::Ok(mi) => *mi,
39                ::core::result::Result::Err(e) => {
40                    panic!(
41                        "method lookup failed: {}
42::{}
43: {}
44",
45                        <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::NAME,
46                        "get_Name",
47                        e
48                    )
49                },
50            }
51        }
52    }
53    #[doc(hidden)]
54    #[allow(non_snake_case)]
55    pub mod __lookup_set_name {
56        use super::*;
57        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
58            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
59            ::unity::lookup::method_info_on_class_with_signature(
60                <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::class(),
61                "set_Name",
62                1,
63                param_types,
64                false,
65            )
66        });
67        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68            match &*METHOD {
69                ::core::result::Result::Ok(mi) => *mi,
70                ::core::result::Result::Err(e) => {
71                    panic!(
72                        "method lookup failed: {}
73::{}
74: {}
75",
76                        <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::NAME,
77                        "set_Name",
78                        e
79                    )
80                },
81            }
82        }
83    }
84    #[doc(hidden)]
85    #[allow(non_snake_case)]
86    pub mod __lookup_ctor {
87        use super::*;
88        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
89            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
90            ::unity::lookup::method_info_on_class_with_signature(
91                <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::class(),
92                ".ctor",
93                0,
94                param_types,
95                false,
96            )
97        });
98        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99            match &*METHOD {
100                ::core::result::Result::Ok(mi) => *mi,
101                ::core::result::Result::Err(e) => {
102                    panic!(
103                        "method lookup failed: {}
104::{}
105: {}
106",
107                        <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::NAME,
108                        ".ctor",
109                        e
110                    )
111                },
112            }
113        }
114    }
115    #[doc(hidden)]
116    #[allow(non_snake_case)]
117    pub mod __lookup_ctor_2 {
118        use super::*;
119        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
120            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
121            ::unity::lookup::method_info_on_class_with_signature(
122                <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::class(),
123                ".ctor",
124                1,
125                param_types,
126                false,
127            )
128        });
129        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130            match &*METHOD {
131                ::core::result::Result::Ok(mi) => *mi,
132                ::core::result::Result::Err(e) => {
133                    panic!(
134                        "method lookup failed: {}
135::{}
136: {}
137",
138                        <MoonSharpPropertyAttribute as ::unity::ClassIdentity>::NAME,
139                        ".ctor",
140                        e
141                    )
142                },
143            }
144        }
145    }
146}
147
148#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute")]
149pub trait IMoonSharpPropertyAttributeMethods: IMoonSharpPropertyAttribute {
150    #[doc = "`get_Name()` overload"]
151    fn get_name(self) -> ::unity::Il2CppString {
152        unsafe {
153            let __receiver =
154                <MoonSharpPropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!(__MoonSharpPropertyAttribute_unity_raw::__lookup_get_name::get_method_info().method_ptr, ::unity::Il2CppString;
156(MoonSharpPropertyAttribute)__receiver)
157        }
158    }
159    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
160    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
161        unsafe {
162            let __receiver =
163                <MoonSharpPropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            ::unity::il2cpp_call!(__MoonSharpPropertyAttribute_unity_raw::__lookup_set_name::get_method_info().method_ptr,();
165(MoonSharpPropertyAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
166        }
167    }
168    #[doc = "`.ctor()` overload"]
169    fn ctor(self) -> () {
170        unsafe {
171            let __receiver =
172                <MoonSharpPropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173            ::unity::il2cpp_call!(__MoonSharpPropertyAttribute_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
174(MoonSharpPropertyAttribute)__receiver)
175        }
176    }
177    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
178    fn ctor_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
179        unsafe {
180            let __receiver =
181                <MoonSharpPropertyAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!(__MoonSharpPropertyAttribute_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
183(MoonSharpPropertyAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
184        }
185    }
186}
187
188#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute")]
189impl<__T: IMoonSharpPropertyAttribute> IMoonSharpPropertyAttributeMethods for __T {}
190
191#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute")]
192impl MoonSharpPropertyAttribute {
193    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
195    }
196
197    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
199    }
200
201    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
203    }
204
205    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
207    }
208}
209
210#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute")]
211impl MoonSharpPropertyAttribute {
212    #[doc = "`.ctor()` — no args"]
213    pub fn new() -> Self {
214        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215            panic!(
216                "{}
217::{}
218 failed to instantiate",
219                ::core::stringify!(MoonSharpPropertyAttribute),
220                ::core::stringify!(new),
221            )
222        });
223        <Self as IMoonSharpPropertyAttributeMethods>::ctor(this);
224        this
225    }
226
227    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
228    pub fn new_2(name: ::unity::Il2CppString) -> Self {
229        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
230            panic!(
231                "{}
232::{}
233 failed to instantiate",
234                ::core::stringify!(MoonSharpPropertyAttribute),
235                ::core::stringify!(new_2),
236            )
237        });
238        <Self as IMoonSharpPropertyAttributeMethods>::ctor_2(this, name);
239        this
240    }
241}
242
243#[cfg(feature = "moon_sharp-interpreter-moonsharppropertyattribute")]
244#[doc(hidden)]
245pub mod prelude {
246    pub use super::{IMoonSharpPropertyAttribute, IMoonSharpPropertyAttributeMethods, MoonSharpPropertyAttribute};
247}