Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor-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/dynvaluememberdescriptor/DynValueMemberDescriptor.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Interop", name = "DynValueMemberDescriptor")]
12    #[parent(crate::system::object::Object)]
13    pub struct DynValueMemberDescriptor {
14        #[offset(16)]
15        #[rename(name = "m_Value")]
16        pub m_value: crate::moon_sharp::interpreter::dynvalue::DynValue,
17    }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __DynValueMemberDescriptor_unity_raw {
27    use super::*;
28    #[doc(hidden)]
29    #[allow(non_snake_case)]
30    pub mod __lookup_ctor {
31        use super::*;
32        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
33            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
34                <::unity::Il2CppString as ::unity::IlType>::il_type(),
35                <::unity::Il2CppString as ::unity::IlType>::il_type(),
36            ];
37            ::unity::lookup::method_info_on_class_with_signature(
38                <DynValueMemberDescriptor as ::unity::ClassIdentity>::class(),
39                ".ctor",
40                2,
41                param_types,
42                false,
43            )
44        });
45        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
46            match &*METHOD {
47                ::core::result::Result::Ok(mi) => *mi,
48                ::core::result::Result::Err(e) => {
49                    panic!(
50                        "method lookup failed: {}
51::{}
52: {}
53",
54                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
55                        ".ctor",
56                        e
57                    )
58                },
59            }
60        }
61    }
62    #[doc(hidden)]
63    #[allow(non_snake_case)]
64    pub mod __lookup_ctor_2 {
65        use super::*;
66        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
67            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
68            ::unity::lookup::method_info_on_class_with_signature(
69                <DynValueMemberDescriptor as ::unity::ClassIdentity>::class(),
70                ".ctor",
71                1,
72                param_types,
73                false,
74            )
75        });
76        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77            match &*METHOD {
78                ::core::result::Result::Ok(mi) => *mi,
79                ::core::result::Result::Err(e) => {
80                    panic!(
81                        "method lookup failed: {}
82::{}
83: {}
84",
85                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
86                        ".ctor",
87                        e
88                    )
89                },
90            }
91        }
92    }
93    #[doc(hidden)]
94    #[allow(non_snake_case)]
95    pub mod __lookup_ctor_3 {
96        use super::*;
97        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
98            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
99                <::unity::Il2CppString as ::unity::IlType>::il_type(),
100                <crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type(),
101            ];
102            ::unity::lookup::method_info_on_class_with_signature(
103                <DynValueMemberDescriptor as ::unity::ClassIdentity>::class(),
104                ".ctor",
105                2,
106                param_types,
107                false,
108            )
109        });
110        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111            match &*METHOD {
112                ::core::result::Result::Ok(mi) => *mi,
113                ::core::result::Result::Err(e) => {
114                    panic!(
115                        "method lookup failed: {}
116::{}
117: {}
118",
119                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
120                        ".ctor",
121                        e
122                    )
123                },
124            }
125        }
126    }
127    #[doc(hidden)]
128    #[allow(non_snake_case)]
129    pub mod __lookup_set_name {
130        use super::*;
131        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
132            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
133            ::unity::lookup::method_info_on_class_with_signature(
134                <DynValueMemberDescriptor as ::unity::ClassIdentity>::class(),
135                "set_Name",
136                1,
137                param_types,
138                false,
139            )
140        });
141        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142            match &*METHOD {
143                ::core::result::Result::Ok(mi) => *mi,
144                ::core::result::Result::Err(e) => {
145                    panic!(
146                        "method lookup failed: {}
147::{}
148: {}
149",
150                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
151                        "set_Name",
152                        e
153                    )
154                },
155            }
156        }
157    }
158    #[doc(hidden)]
159    #[allow(non_snake_case)]
160    pub mod __lookup_set_member_access {
161        use super::*;
162        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
163            let param_types: &[& 'static::unity::il2cpp::Il2CppType]= &[<crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess as::unity::IlType> ::il_type()];
164            ::unity::lookup::method_info_on_class_with_signature(
165                <DynValueMemberDescriptor as ::unity::ClassIdentity>::class(),
166                "set_MemberAccess",
167                1,
168                param_types,
169                false,
170            )
171        });
172        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173            match &*METHOD {
174                ::core::result::Result::Ok(mi) => *mi,
175                ::core::result::Result::Err(e) => {
176                    panic!(
177                        "method lookup failed: {}
178::{}
179: {}
180",
181                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
182                        "set_MemberAccess",
183                        e
184                    )
185                },
186            }
187        }
188    }
189}
190
191#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor")]
192pub trait IDynValueMemberDescriptorMethods: IDynValueMemberDescriptor {
193    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
194    fn ctor(
195        self,
196        name: impl ::core::convert::Into<::unity::Il2CppString>,
197        serialized_table_value: impl ::core::convert::Into<::unity::Il2CppString>,
198    ) -> () {
199        unsafe {
200            let __receiver =
201                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!(__DynValueMemberDescriptor_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
203(DynValueMemberDescriptor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(serialized_table_value))
204        }
205    }
206    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
207    fn ctor_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
208        unsafe {
209            let __receiver =
210                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!(__DynValueMemberDescriptor_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
212(DynValueMemberDescriptor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
213        }
214    }
215    #[doc = "`.ctor(::unity::Il2CppString, crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
216    fn ctor_3(
217        self,
218        name: impl ::core::convert::Into<::unity::Il2CppString>,
219        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
220    ) -> () {
221        unsafe {
222            let __receiver =
223                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224            ::unity::il2cpp_call!(__DynValueMemberDescriptor_unity_raw::__lookup_ctor_3::get_method_info().method_ptr,();
225(DynValueMemberDescriptor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(value))
226        }
227    }
228    #[doc = "`get_IsStatic()` overload"]
229    fn get_is_static(self) -> bool {
230        unsafe {
231            let __receiver =
232                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            {
234                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
235                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
236                    panic!(
237                        "unity: virtual slot {}
238 out of range (vtable len {}
239) on the runtime class behind {}
240 (method `{}
241`)",
242                        4usize,
243                        __vt.len(),
244                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
245                        "get_IsStatic",
246                    )
247                });
248                let __inner: extern "C" fn(DynValueMemberDescriptor, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
249                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
250                __inner(__receiver, __mi)
251            }
252        }
253    }
254    #[doc = "`get_Name()` overload"]
255    fn get_name(self) -> ::unity::Il2CppString {
256        unsafe {
257            let __receiver =
258                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259            {
260                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
261                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
262                    panic!(
263                        "unity: virtual slot {}
264 out of range (vtable len {}
265) on the runtime class behind {}
266 (method `{}
267`)",
268                        5usize,
269                        __vt.len(),
270                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
271                        "get_Name",
272                    )
273                });
274                let __inner: extern "C" fn(DynValueMemberDescriptor, ::unity::OptionalMethod) -> ::unity::Il2CppString =
275                    ::core::mem::transmute(__vi.method_ptr);
276                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
277                __inner(__receiver, __mi)
278            }
279        }
280    }
281    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
282    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
283        unsafe {
284            let __receiver =
285                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286            ::unity::il2cpp_call!(__DynValueMemberDescriptor_unity_raw::__lookup_set_name::get_method_info().method_ptr,();
287(DynValueMemberDescriptor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
288        }
289    }
290    #[doc = "`get_MemberAccess()` overload"]
291    fn get_member_access(self) -> crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess {
292        unsafe {
293            let __receiver =
294                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            {
296                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
297                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
298                    panic!(
299                        "unity: virtual slot {}
300 out of range (vtable len {}
301) on the runtime class behind {}
302 (method `{}
303`)",
304                        6usize,
305                        __vt.len(),
306                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
307                        "get_MemberAccess",
308                    )
309                });
310                let __inner:extern "C" fn(DynValueMemberDescriptor, ::unity::OptionalMethod,)->crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess= ::core::mem::transmute(__vi.method_ptr);
311                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
312                __inner(__receiver, __mi)
313            }
314        }
315    }
316    #[doc = "`set_MemberAccess(crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess)` overload"]
317    fn set_member_access(
318        self,
319        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess>,
320    ) -> () {
321        unsafe {
322            let __receiver =
323                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324            ::unity::il2cpp_call!(__DynValueMemberDescriptor_unity_raw::__lookup_set_member_access::get_method_info().method_ptr,();
325(DynValueMemberDescriptor)__receiver,(crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess)::core::convert::Into::into(value))
326        }
327    }
328    #[doc = "`get_Value()` overload"]
329    fn get_value(self) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
330        unsafe {
331            let __receiver =
332                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333            {
334                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
335                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
336                    panic!(
337                        "unity: virtual slot {}
338 out of range (vtable len {}
339) on the runtime class behind {}
340 (method `{}
341`)",
342                        10usize,
343                        __vt.len(),
344                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
345                        "get_Value",
346                    )
347                });
348                let __inner: extern "C" fn(DynValueMemberDescriptor, ::unity::OptionalMethod) -> crate::moon_sharp::interpreter::dynvalue::DynValue =
349                    ::core::mem::transmute(__vi.method_ptr);
350                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
351                __inner(__receiver, __mi)
352            }
353        }
354    }
355    #[doc = "`GetValue(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object)` overload"]
356    fn get_value_2(
357        self,
358        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
359        obj: impl ::core::convert::Into<crate::system::object::Object>,
360    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
361        unsafe {
362            let __receiver =
363                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364            {
365                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
366                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
367                    panic!(
368                        "unity: virtual slot {}
369 out of range (vtable len {}
370) on the runtime class behind {}
371 (method `{}
372`)",
373                        7usize,
374                        __vt.len(),
375                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
376                        "GetValue",
377                    )
378                });
379                let __inner: extern "C" fn(
380                    DynValueMemberDescriptor,
381                    crate::moon_sharp::interpreter::script::Script,
382                    crate::system::object::Object,
383                    ::unity::OptionalMethod,
384                ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
385                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
386                __inner(__receiver, ::core::convert::Into::into(script), ::core::convert::Into::into(obj), __mi)
387            }
388        }
389    }
390    #[doc = "`SetValue(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
391    fn set_value(
392        self,
393        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
394        obj: impl ::core::convert::Into<crate::system::object::Object>,
395        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
396    ) -> () {
397        unsafe {
398            let __receiver =
399                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400            {
401                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
402                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
403                    panic!(
404                        "unity: virtual slot {}
405 out of range (vtable len {}
406) on the runtime class behind {}
407 (method `{}
408`)",
409                        8usize,
410                        __vt.len(),
411                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
412                        "SetValue",
413                    )
414                });
415                let __inner: extern "C" fn(
416                    DynValueMemberDescriptor,
417                    crate::moon_sharp::interpreter::script::Script,
418                    crate::system::object::Object,
419                    crate::moon_sharp::interpreter::dynvalue::DynValue,
420                    ::unity::OptionalMethod,
421                ) -> () = ::core::mem::transmute(__vi.method_ptr);
422                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
423                __inner(
424                    __receiver,
425                    ::core::convert::Into::into(script),
426                    ::core::convert::Into::into(obj),
427                    ::core::convert::Into::into(value),
428                    __mi,
429                )
430            }
431        }
432    }
433    #[doc = "`PrepareForWiring(crate::moon_sharp::interpreter::table::Table)` overload"]
434    fn prepare_for_wiring(self, t: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>) -> () {
435        unsafe {
436            let __receiver =
437                <DynValueMemberDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438            {
439                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
440                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
441                    panic!(
442                        "unity: virtual slot {}
443 out of range (vtable len {}
444) on the runtime class behind {}
445 (method `{}
446`)",
447                        9usize,
448                        __vt.len(),
449                        <DynValueMemberDescriptor as ::unity::ClassIdentity>::NAME,
450                        "PrepareForWiring",
451                    )
452                });
453                let __inner: extern "C" fn(DynValueMemberDescriptor, crate::moon_sharp::interpreter::table::Table, ::unity::OptionalMethod) -> () =
454                    ::core::mem::transmute(__vi.method_ptr);
455                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
456                __inner(__receiver, ::core::convert::Into::into(t), __mi)
457            }
458        }
459    }
460}
461
462#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor")]
463impl<__T: IDynValueMemberDescriptor> IDynValueMemberDescriptorMethods for __T {}
464
465#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor")]
466impl DynValueMemberDescriptor {
467    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
469    }
470
471    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
473    }
474
475    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
477    }
478
479    pub fn get_is_static_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
481    }
482
483    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
485    }
486
487    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
489    }
490
491    pub fn get_member_access_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
493    }
494
495    pub fn set_member_access_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
497    }
498
499    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
500        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
501    }
502
503    pub fn get_value_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
504        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
505    }
506
507    pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
509    }
510
511    pub fn prepare_for_wiring_method_info() -> &'static ::unity::il2cpp::MethodInfo {
512        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
513    }
514}
515
516#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor")]
517impl DynValueMemberDescriptor {
518    #[doc = "Direct (non-virtual) call to `DynValueMemberDescriptor`'s own `get_IsStatic`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
519    pub unsafe fn get_is_static(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
520        let __mi = Self::get_is_static_method_info();
521        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
522        __inner(this.into(), ::core::option::Option::None)
523    }
524
525    #[doc = "Direct (non-virtual) call to `DynValueMemberDescriptor`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
526    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
527        let __mi = Self::get_name_method_info();
528        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
529        __inner(this.into(), ::core::option::Option::None)
530    }
531
532    #[doc = "Direct (non-virtual) call to `DynValueMemberDescriptor`'s own `get_MemberAccess`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
533    pub unsafe fn get_member_access(
534        this: impl ::core::convert::Into<::unity::IlInstance>,
535    ) -> crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess {
536        let __mi = Self::get_member_access_method_info();
537        let __inner: extern "C" fn(
538            ::unity::IlInstance,
539            ::unity::OptionalMethod,
540        )
541            -> crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess =
542            ::core::mem::transmute(__mi.method_ptr);
543        __inner(this.into(), ::core::option::Option::None)
544    }
545
546    #[doc = "Direct (non-virtual) call to `DynValueMemberDescriptor`'s own `get_Value`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
547    pub unsafe fn get_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
548        let __mi = Self::get_value_method_info();
549        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::moon_sharp::interpreter::dynvalue::DynValue =
550            ::core::mem::transmute(__mi.method_ptr);
551        __inner(this.into(), ::core::option::Option::None)
552    }
553
554    #[doc = "Direct (non-virtual) call to `DynValueMemberDescriptor`'s own `GetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
555    pub unsafe fn get_value_2(
556        this: impl ::core::convert::Into<::unity::IlInstance>,
557        script: crate::moon_sharp::interpreter::script::Script,
558        obj: crate::system::object::Object,
559    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
560        let __mi = Self::get_value_2_method_info();
561        let __inner: extern "C" fn(
562            ::unity::IlInstance,
563            crate::moon_sharp::interpreter::script::Script,
564            crate::system::object::Object,
565            ::unity::OptionalMethod,
566        ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
567        __inner(this.into(), script, obj, ::core::option::Option::None)
568    }
569
570    #[doc = "Direct (non-virtual) call to `DynValueMemberDescriptor`'s own `SetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
571    pub unsafe fn set_value(
572        this: impl ::core::convert::Into<::unity::IlInstance>,
573        script: crate::moon_sharp::interpreter::script::Script,
574        obj: crate::system::object::Object,
575        value: crate::moon_sharp::interpreter::dynvalue::DynValue,
576    ) -> () {
577        let __mi = Self::set_value_method_info();
578        let __inner: extern "C" fn(
579            ::unity::IlInstance,
580            crate::moon_sharp::interpreter::script::Script,
581            crate::system::object::Object,
582            crate::moon_sharp::interpreter::dynvalue::DynValue,
583            ::unity::OptionalMethod,
584        ) -> () = ::core::mem::transmute(__mi.method_ptr);
585        __inner(this.into(), script, obj, value, ::core::option::Option::None)
586    }
587
588    #[doc = "Direct (non-virtual) call to `DynValueMemberDescriptor`'s own `PrepareForWiring`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
589    pub unsafe fn prepare_for_wiring(this: impl ::core::convert::Into<::unity::IlInstance>, t: crate::moon_sharp::interpreter::table::Table) -> () {
590        let __mi = Self::prepare_for_wiring_method_info();
591        let __inner: extern "C" fn(::unity::IlInstance, crate::moon_sharp::interpreter::table::Table, ::unity::OptionalMethod) -> () =
592            ::core::mem::transmute(__mi.method_ptr);
593        __inner(this.into(), t, ::core::option::Option::None)
594    }
595}
596
597#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor")]
598impl DynValueMemberDescriptor {
599    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` — overload selector"]
600    pub fn new(name: ::unity::Il2CppString, serialized_table_value: ::unity::Il2CppString) -> Self {
601        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
602            panic!(
603                "{}
604::{}
605 failed to instantiate",
606                ::core::stringify!(DynValueMemberDescriptor),
607                ::core::stringify!(new),
608            )
609        });
610        <Self as IDynValueMemberDescriptorMethods>::ctor(this, name, serialized_table_value);
611        this
612    }
613
614    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
615    pub fn new_2(name: ::unity::Il2CppString) -> Self {
616        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
617            panic!(
618                "{}
619::{}
620 failed to instantiate",
621                ::core::stringify!(DynValueMemberDescriptor),
622                ::core::stringify!(new_2),
623            )
624        });
625        <Self as IDynValueMemberDescriptorMethods>::ctor_2(this, name);
626        this
627    }
628
629    #[doc = "`.ctor(::unity::Il2CppString, crate::moon_sharp::interpreter::dynvalue::DynValue)` — overload selector"]
630    pub fn new_3(name: ::unity::Il2CppString, value: crate::moon_sharp::interpreter::dynvalue::DynValue) -> Self {
631        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
632            panic!(
633                "{}
634::{}
635 failed to instantiate",
636                ::core::stringify!(DynValueMemberDescriptor),
637                ::core::stringify!(new_3),
638            )
639        });
640        <Self as IDynValueMemberDescriptorMethods>::ctor_3(this, name, value);
641        this
642    }
643}
644
645#[cfg(feature = "moon_sharp-interpreter-interop-dynvaluememberdescriptor")]
646#[doc(hidden)]
647pub mod prelude {
648    pub use super::{DynValueMemberDescriptor, IDynValueMemberDescriptor, IDynValueMemberDescriptorMethods};
649    pub use crate::system::object::IObject;
650    #[cfg(feature = "system-object")]
651    pub use crate::system::object::IObjectMethods;
652}