Skip to main content

engage/generated/moon_sharp/interpreter/
autodescribinguserdatadescriptor.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor-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/autodescribinguserdatadescriptor/AutoDescribingUserDataDescriptor.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "AutoDescribingUserDataDescriptor")]
12    #[parent(crate::system::object::Object)]
13    pub struct AutoDescribingUserDataDescriptor {
14        #[offset(16)]
15        #[rename(name = "m_FriendlyName")]
16        pub m_friendly_name: ::unity::Il2CppString,
17        #[offset(24)]
18        #[rename(name = "m_Type")]
19        pub m_type: ::unity::SystemType,
20    }
21}
22
23#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor-types")]
24pub use __types::*;
25
26#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor")]
27#[doc(hidden)]
28#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
29mod __AutoDescribingUserDataDescriptor_unity_raw {
30    use super::*;
31    #[doc(hidden)]
32    #[allow(non_snake_case)]
33    pub mod __lookup_ctor {
34        use super::*;
35        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
36            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
37                <::unity::SystemType as ::unity::IlType>::il_type(),
38                <::unity::Il2CppString as ::unity::IlType>::il_type(),
39            ];
40            ::unity::lookup::method_info_on_class_with_signature(
41                <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::class(),
42                ".ctor",
43                2,
44                param_types,
45                false,
46            )
47        });
48        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49            match &*METHOD {
50                ::core::result::Result::Ok(mi) => *mi,
51                ::core::result::Result::Err(e) => {
52                    panic!(
53                        "method lookup failed: {}
54::{}
55: {}
56",
57                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
58                        ".ctor",
59                        e
60                    )
61                },
62            }
63        }
64    }
65}
66
67#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor")]
68pub trait IAutoDescribingUserDataDescriptorMethods: IAutoDescribingUserDataDescriptor {
69    #[doc = "`.ctor(::unity::SystemType, ::unity::Il2CppString)` overload"]
70    fn ctor(self, r#type: impl ::core::convert::Into<::unity::SystemType>, friendly_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
71        unsafe {
72            let __receiver =
73                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!(__AutoDescribingUserDataDescriptor_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
75(AutoDescribingUserDataDescriptor)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(::unity::Il2CppString)::core::convert::Into::into(friendly_name))
76        }
77    }
78    #[doc = "`get_Name()` overload"]
79    fn get_name(self) -> ::unity::Il2CppString {
80        unsafe {
81            let __receiver =
82                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            {
84                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
86                    panic!(
87                        "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92                        4usize,
93                        __vt.len(),
94                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
95                        "get_Name",
96                    )
97                });
98                let __inner: extern "C" fn(AutoDescribingUserDataDescriptor, ::unity::OptionalMethod) -> ::unity::Il2CppString =
99                    ::core::mem::transmute(__vi.method_ptr);
100                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101                __inner(__receiver, __mi)
102            }
103        }
104    }
105    #[doc = "`get_Type()` overload"]
106    fn get_type(self) -> ::unity::SystemType {
107        unsafe {
108            let __receiver =
109                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            {
111                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
112                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
113                    panic!(
114                        "unity: virtual slot {}
115 out of range (vtable len {}
116) on the runtime class behind {}
117 (method `{}
118`)",
119                        5usize,
120                        __vt.len(),
121                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
122                        "get_Type",
123                    )
124                });
125                let __inner: extern "C" fn(AutoDescribingUserDataDescriptor, ::unity::OptionalMethod) -> ::unity::SystemType =
126                    ::core::mem::transmute(__vi.method_ptr);
127                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128                __inner(__receiver, __mi)
129            }
130        }
131    }
132    #[doc = "`Index(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, crate::moon_sharp::interpreter::dynvalue::DynValue, bool)` overload"]
133    fn index(
134        self,
135        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
136        obj: impl ::core::convert::Into<crate::system::object::Object>,
137        index: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
138        is_direct_indexing: impl ::core::convert::Into<bool>,
139    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
140        unsafe {
141            let __receiver =
142                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            {
144                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
145                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
146                    panic!(
147                        "unity: virtual slot {}
148 out of range (vtable len {}
149) on the runtime class behind {}
150 (method `{}
151`)",
152                        6usize,
153                        __vt.len(),
154                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
155                        "Index",
156                    )
157                });
158                let __inner: extern "C" fn(
159                    AutoDescribingUserDataDescriptor,
160                    crate::moon_sharp::interpreter::script::Script,
161                    crate::system::object::Object,
162                    crate::moon_sharp::interpreter::dynvalue::DynValue,
163                    bool,
164                    ::unity::OptionalMethod,
165                ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
166                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167                __inner(
168                    __receiver,
169                    ::core::convert::Into::into(script),
170                    ::core::convert::Into::into(obj),
171                    ::core::convert::Into::into(index),
172                    ::core::convert::Into::into(is_direct_indexing),
173                    __mi,
174                )
175            }
176        }
177    }
178    #[doc = "`SetIndex(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue, bool)` overload"]
179    fn set_index(
180        self,
181        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
182        obj: impl ::core::convert::Into<crate::system::object::Object>,
183        index: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
184        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
185        is_direct_indexing: impl ::core::convert::Into<bool>,
186    ) -> bool {
187        unsafe {
188            let __receiver =
189                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            {
191                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
192                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
193                    panic!(
194                        "unity: virtual slot {}
195 out of range (vtable len {}
196) on the runtime class behind {}
197 (method `{}
198`)",
199                        7usize,
200                        __vt.len(),
201                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
202                        "SetIndex",
203                    )
204                });
205                let __inner: extern "C" fn(
206                    AutoDescribingUserDataDescriptor,
207                    crate::moon_sharp::interpreter::script::Script,
208                    crate::system::object::Object,
209                    crate::moon_sharp::interpreter::dynvalue::DynValue,
210                    crate::moon_sharp::interpreter::dynvalue::DynValue,
211                    bool,
212                    ::unity::OptionalMethod,
213                ) -> bool = ::core::mem::transmute(__vi.method_ptr);
214                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
215                __inner(
216                    __receiver,
217                    ::core::convert::Into::into(script),
218                    ::core::convert::Into::into(obj),
219                    ::core::convert::Into::into(index),
220                    ::core::convert::Into::into(value),
221                    ::core::convert::Into::into(is_direct_indexing),
222                    __mi,
223                )
224            }
225        }
226    }
227    #[doc = "`AsString(crate::system::object::Object)` overload"]
228    fn as_string(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> ::unity::Il2CppString {
229        unsafe {
230            let __receiver =
231                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            {
233                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
234                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
235                    panic!(
236                        "unity: virtual slot {}
237 out of range (vtable len {}
238) on the runtime class behind {}
239 (method `{}
240`)",
241                        8usize,
242                        __vt.len(),
243                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
244                        "AsString",
245                    )
246                });
247                let __inner: extern "C" fn(
248                    AutoDescribingUserDataDescriptor,
249                    crate::system::object::Object,
250                    ::unity::OptionalMethod,
251                ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
252                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
253                __inner(__receiver, ::core::convert::Into::into(obj), __mi)
254            }
255        }
256    }
257    #[doc = "`MetaIndex(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, ::unity::Il2CppString)` overload"]
258    fn meta_index(
259        self,
260        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
261        obj: impl ::core::convert::Into<crate::system::object::Object>,
262        metaname: impl ::core::convert::Into<::unity::Il2CppString>,
263    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
264        unsafe {
265            let __receiver =
266                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            {
268                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
269                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
270                    panic!(
271                        "unity: virtual slot {}
272 out of range (vtable len {}
273) on the runtime class behind {}
274 (method `{}
275`)",
276                        9usize,
277                        __vt.len(),
278                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
279                        "MetaIndex",
280                    )
281                });
282                let __inner: extern "C" fn(
283                    AutoDescribingUserDataDescriptor,
284                    crate::moon_sharp::interpreter::script::Script,
285                    crate::system::object::Object,
286                    ::unity::Il2CppString,
287                    ::unity::OptionalMethod,
288                ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
289                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
290                __inner(
291                    __receiver,
292                    ::core::convert::Into::into(script),
293                    ::core::convert::Into::into(obj),
294                    ::core::convert::Into::into(metaname),
295                    __mi,
296                )
297            }
298        }
299    }
300    #[doc = "`IsTypeCompatible(::unity::SystemType, crate::system::object::Object)` overload"]
301    fn is_type_compatible(
302        self,
303        r#type: impl ::core::convert::Into<::unity::SystemType>,
304        obj: impl ::core::convert::Into<crate::system::object::Object>,
305    ) -> bool {
306        unsafe {
307            let __receiver =
308                <AutoDescribingUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309            {
310                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
311                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
312                    panic!(
313                        "unity: virtual slot {}
314 out of range (vtable len {}
315) on the runtime class behind {}
316 (method `{}
317`)",
318                        10usize,
319                        __vt.len(),
320                        <AutoDescribingUserDataDescriptor as ::unity::ClassIdentity>::NAME,
321                        "IsTypeCompatible",
322                    )
323                });
324                let __inner: extern "C" fn(
325                    AutoDescribingUserDataDescriptor,
326                    ::unity::SystemType,
327                    crate::system::object::Object,
328                    ::unity::OptionalMethod,
329                ) -> bool = ::core::mem::transmute(__vi.method_ptr);
330                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
331                __inner(__receiver, ::core::convert::Into::into(r#type), ::core::convert::Into::into(obj), __mi)
332            }
333        }
334    }
335}
336
337#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor")]
338impl<__T: IAutoDescribingUserDataDescriptor> IAutoDescribingUserDataDescriptorMethods for __T {}
339
340#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor")]
341impl AutoDescribingUserDataDescriptor {
342    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
344    }
345
346    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
348    }
349
350    pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
352    }
353
354    pub fn index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
356    }
357
358    pub fn set_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
360    }
361
362    pub fn as_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
364    }
365
366    pub fn meta_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
368    }
369
370    pub fn is_type_compatible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
372    }
373}
374
375#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor")]
376impl AutoDescribingUserDataDescriptor {
377    #[doc = "Direct (non-virtual) call to `AutoDescribingUserDataDescriptor`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
378    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
379        let __mi = Self::get_name_method_info();
380        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
381        __inner(this.into(), ::core::option::Option::None)
382    }
383
384    #[doc = "Direct (non-virtual) call to `AutoDescribingUserDataDescriptor`'s own `get_Type`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
385    pub unsafe fn get_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
386        let __mi = Self::get_type_method_info();
387        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
388        __inner(this.into(), ::core::option::Option::None)
389    }
390
391    #[doc = "Direct (non-virtual) call to `AutoDescribingUserDataDescriptor`'s own `Index`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
392    pub unsafe fn index(
393        this: impl ::core::convert::Into<::unity::IlInstance>,
394        script: crate::moon_sharp::interpreter::script::Script,
395        obj: crate::system::object::Object,
396        index: crate::moon_sharp::interpreter::dynvalue::DynValue,
397        is_direct_indexing: bool,
398    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
399        let __mi = Self::index_method_info();
400        let __inner: extern "C" fn(
401            ::unity::IlInstance,
402            crate::moon_sharp::interpreter::script::Script,
403            crate::system::object::Object,
404            crate::moon_sharp::interpreter::dynvalue::DynValue,
405            bool,
406            ::unity::OptionalMethod,
407        ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
408        __inner(this.into(), script, obj, index, is_direct_indexing, ::core::option::Option::None)
409    }
410
411    #[doc = "Direct (non-virtual) call to `AutoDescribingUserDataDescriptor`'s own `SetIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
412    pub unsafe fn set_index(
413        this: impl ::core::convert::Into<::unity::IlInstance>,
414        script: crate::moon_sharp::interpreter::script::Script,
415        obj: crate::system::object::Object,
416        index: crate::moon_sharp::interpreter::dynvalue::DynValue,
417        value: crate::moon_sharp::interpreter::dynvalue::DynValue,
418        is_direct_indexing: bool,
419    ) -> bool {
420        let __mi = Self::set_index_method_info();
421        let __inner: extern "C" fn(
422            ::unity::IlInstance,
423            crate::moon_sharp::interpreter::script::Script,
424            crate::system::object::Object,
425            crate::moon_sharp::interpreter::dynvalue::DynValue,
426            crate::moon_sharp::interpreter::dynvalue::DynValue,
427            bool,
428            ::unity::OptionalMethod,
429        ) -> bool = ::core::mem::transmute(__mi.method_ptr);
430        __inner(this.into(), script, obj, index, value, is_direct_indexing, ::core::option::Option::None)
431    }
432
433    #[doc = "Direct (non-virtual) call to `AutoDescribingUserDataDescriptor`'s own `AsString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
434    pub unsafe fn as_string(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> ::unity::Il2CppString {
435        let __mi = Self::as_string_method_info();
436        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> ::unity::Il2CppString =
437            ::core::mem::transmute(__mi.method_ptr);
438        __inner(this.into(), obj, ::core::option::Option::None)
439    }
440
441    #[doc = "Direct (non-virtual) call to `AutoDescribingUserDataDescriptor`'s own `MetaIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
442    pub unsafe fn meta_index(
443        this: impl ::core::convert::Into<::unity::IlInstance>,
444        script: crate::moon_sharp::interpreter::script::Script,
445        obj: crate::system::object::Object,
446        metaname: ::unity::Il2CppString,
447    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
448        let __mi = Self::meta_index_method_info();
449        let __inner: extern "C" fn(
450            ::unity::IlInstance,
451            crate::moon_sharp::interpreter::script::Script,
452            crate::system::object::Object,
453            ::unity::Il2CppString,
454            ::unity::OptionalMethod,
455        ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
456        __inner(this.into(), script, obj, metaname, ::core::option::Option::None)
457    }
458
459    #[doc = "Direct (non-virtual) call to `AutoDescribingUserDataDescriptor`'s own `IsTypeCompatible`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
460    pub unsafe fn is_type_compatible(
461        this: impl ::core::convert::Into<::unity::IlInstance>,
462        r#type: ::unity::SystemType,
463        obj: crate::system::object::Object,
464    ) -> bool {
465        let __mi = Self::is_type_compatible_method_info();
466        let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
467            ::core::mem::transmute(__mi.method_ptr);
468        __inner(this.into(), r#type, obj, ::core::option::Option::None)
469    }
470}
471
472#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor")]
473impl AutoDescribingUserDataDescriptor {
474    #[doc = "`.ctor(::unity::SystemType, ::unity::Il2CppString)` — overload selector"]
475    pub fn new(r#type: ::unity::SystemType, friendly_name: ::unity::Il2CppString) -> Self {
476        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
477            panic!(
478                "{}
479::{}
480 failed to instantiate",
481                ::core::stringify!(AutoDescribingUserDataDescriptor),
482                ::core::stringify!(new),
483            )
484        });
485        <Self as IAutoDescribingUserDataDescriptorMethods>::ctor(this, r#type, friendly_name);
486        this
487    }
488}
489
490#[cfg(feature = "moon_sharp-interpreter-autodescribinguserdatadescriptor")]
491#[doc(hidden)]
492pub mod prelude {
493    pub use super::{AutoDescribingUserDataDescriptor, IAutoDescribingUserDataDescriptor, IAutoDescribingUserDataDescriptorMethods};
494    pub use crate::system::object::IObject;
495    #[cfg(feature = "system-object")]
496    pub use crate::system::object::IObjectMethods;
497}