Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-interop-iuserdatadescriptor-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/interop/iuserdatadescriptor/IUserDataDescriptor.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter.Interop", name = "IUserDataDescriptor")]
11    pub struct IUserDataDescriptor {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-interop-iuserdatadescriptor-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-interop-iuserdatadescriptor")]
18pub trait IIUserDataDescriptorMethods: IIUserDataDescriptor {
19    #[doc = "`get_Name()` overload"]
20    fn get_name(self) -> ::unity::Il2CppString {
21        unsafe {
22            let __receiver = <IUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23            {
24                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26                    panic!(
27                        "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32                        0usize,
33                        __vt.len(),
34                        <IUserDataDescriptor as ::unity::ClassIdentity>::NAME,
35                        "get_Name",
36                    )
37                });
38                let __inner: extern "C" fn(IUserDataDescriptor, ::unity::OptionalMethod) -> ::unity::Il2CppString =
39                    ::core::mem::transmute(__vi.method_ptr);
40                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41                __inner(__receiver, __mi)
42            }
43        }
44    }
45    #[doc = "`get_Type()` overload"]
46    fn get_type(self) -> ::unity::SystemType {
47        unsafe {
48            let __receiver = <IUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            {
50                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
52                    panic!(
53                        "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58                        1usize,
59                        __vt.len(),
60                        <IUserDataDescriptor as ::unity::ClassIdentity>::NAME,
61                        "get_Type",
62                    )
63                });
64                let __inner: extern "C" fn(IUserDataDescriptor, ::unity::OptionalMethod) -> ::unity::SystemType =
65                    ::core::mem::transmute(__vi.method_ptr);
66                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67                __inner(__receiver, __mi)
68            }
69        }
70    }
71    #[doc = "`Index(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, crate::moon_sharp::interpreter::dynvalue::DynValue, bool)` overload"]
72    fn index(
73        self,
74        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
75        obj: impl ::core::convert::Into<crate::system::object::Object>,
76        index: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
77        is_direct_indexing: impl ::core::convert::Into<bool>,
78    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
79        unsafe {
80            let __receiver = <IUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            {
82                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
83                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
84                    panic!(
85                        "unity: virtual slot {}
86 out of range (vtable len {}
87) on the runtime class behind {}
88 (method `{}
89`)",
90                        2usize,
91                        __vt.len(),
92                        <IUserDataDescriptor as ::unity::ClassIdentity>::NAME,
93                        "Index",
94                    )
95                });
96                let __inner: extern "C" fn(
97                    IUserDataDescriptor,
98                    crate::moon_sharp::interpreter::script::Script,
99                    crate::system::object::Object,
100                    crate::moon_sharp::interpreter::dynvalue::DynValue,
101                    bool,
102                    ::unity::OptionalMethod,
103                ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
104                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105                __inner(
106                    __receiver,
107                    ::core::convert::Into::into(script),
108                    ::core::convert::Into::into(obj),
109                    ::core::convert::Into::into(index),
110                    ::core::convert::Into::into(is_direct_indexing),
111                    __mi,
112                )
113            }
114        }
115    }
116    #[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"]
117    fn set_index(
118        self,
119        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
120        obj: impl ::core::convert::Into<crate::system::object::Object>,
121        index: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
122        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
123        is_direct_indexing: impl ::core::convert::Into<bool>,
124    ) -> bool {
125        unsafe {
126            let __receiver = <IUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            {
128                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
130                    panic!(
131                        "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136                        3usize,
137                        __vt.len(),
138                        <IUserDataDescriptor as ::unity::ClassIdentity>::NAME,
139                        "SetIndex",
140                    )
141                });
142                let __inner: extern "C" fn(
143                    IUserDataDescriptor,
144                    crate::moon_sharp::interpreter::script::Script,
145                    crate::system::object::Object,
146                    crate::moon_sharp::interpreter::dynvalue::DynValue,
147                    crate::moon_sharp::interpreter::dynvalue::DynValue,
148                    bool,
149                    ::unity::OptionalMethod,
150                ) -> bool = ::core::mem::transmute(__vi.method_ptr);
151                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152                __inner(
153                    __receiver,
154                    ::core::convert::Into::into(script),
155                    ::core::convert::Into::into(obj),
156                    ::core::convert::Into::into(index),
157                    ::core::convert::Into::into(value),
158                    ::core::convert::Into::into(is_direct_indexing),
159                    __mi,
160                )
161            }
162        }
163    }
164    #[doc = "`AsString(crate::system::object::Object)` overload"]
165    fn as_string(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> ::unity::Il2CppString {
166        unsafe {
167            let __receiver = <IUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            {
169                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
170                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
171                    panic!(
172                        "unity: virtual slot {}
173 out of range (vtable len {}
174) on the runtime class behind {}
175 (method `{}
176`)",
177                        4usize,
178                        __vt.len(),
179                        <IUserDataDescriptor as ::unity::ClassIdentity>::NAME,
180                        "AsString",
181                    )
182                });
183                let __inner: extern "C" fn(IUserDataDescriptor, crate::system::object::Object, ::unity::OptionalMethod) -> ::unity::Il2CppString =
184                    ::core::mem::transmute(__vi.method_ptr);
185                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
186                __inner(__receiver, ::core::convert::Into::into(obj), __mi)
187            }
188        }
189    }
190    #[doc = "`MetaIndex(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, ::unity::Il2CppString)` overload"]
191    fn meta_index(
192        self,
193        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
194        obj: impl ::core::convert::Into<crate::system::object::Object>,
195        metaname: impl ::core::convert::Into<::unity::Il2CppString>,
196    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
197        unsafe {
198            let __receiver = <IUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            {
200                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
201                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
202                    panic!(
203                        "unity: virtual slot {}
204 out of range (vtable len {}
205) on the runtime class behind {}
206 (method `{}
207`)",
208                        5usize,
209                        __vt.len(),
210                        <IUserDataDescriptor as ::unity::ClassIdentity>::NAME,
211                        "MetaIndex",
212                    )
213                });
214                let __inner: extern "C" fn(
215                    IUserDataDescriptor,
216                    crate::moon_sharp::interpreter::script::Script,
217                    crate::system::object::Object,
218                    ::unity::Il2CppString,
219                    ::unity::OptionalMethod,
220                ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
221                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
222                __inner(
223                    __receiver,
224                    ::core::convert::Into::into(script),
225                    ::core::convert::Into::into(obj),
226                    ::core::convert::Into::into(metaname),
227                    __mi,
228                )
229            }
230        }
231    }
232    #[doc = "`IsTypeCompatible(::unity::SystemType, crate::system::object::Object)` overload"]
233    fn is_type_compatible(
234        self,
235        r#type: impl ::core::convert::Into<::unity::SystemType>,
236        obj: impl ::core::convert::Into<crate::system::object::Object>,
237    ) -> bool {
238        unsafe {
239            let __receiver = <IUserDataDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            {
241                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
242                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
243                    panic!(
244                        "unity: virtual slot {}
245 out of range (vtable len {}
246) on the runtime class behind {}
247 (method `{}
248`)",
249                        6usize,
250                        __vt.len(),
251                        <IUserDataDescriptor as ::unity::ClassIdentity>::NAME,
252                        "IsTypeCompatible",
253                    )
254                });
255                let __inner: extern "C" fn(IUserDataDescriptor, ::unity::SystemType, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
256                    ::core::mem::transmute(__vi.method_ptr);
257                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
258                __inner(__receiver, ::core::convert::Into::into(r#type), ::core::convert::Into::into(obj), __mi)
259            }
260        }
261    }
262}
263
264#[cfg(feature = "moon_sharp-interpreter-interop-iuserdatadescriptor")]
265impl<__T: IIUserDataDescriptor> IIUserDataDescriptorMethods for __T {}
266
267#[cfg(feature = "moon_sharp-interpreter-interop-iuserdatadescriptor")]
268impl IUserDataDescriptor {
269    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
271    }
272
273    pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
275    }
276
277    pub fn index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
279    }
280
281    pub fn set_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
283    }
284
285    pub fn as_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
287    }
288
289    pub fn meta_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
291    }
292
293    pub fn is_type_compatible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
295    }
296}
297
298#[cfg(feature = "moon_sharp-interpreter-interop-iuserdatadescriptor")]
299impl IUserDataDescriptor {
300    #[doc = "Direct (non-virtual) call to `IUserDataDescriptor`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
301    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
302        let __mi = Self::get_name_method_info();
303        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
304        __inner(this.into(), ::core::option::Option::None)
305    }
306
307    #[doc = "Direct (non-virtual) call to `IUserDataDescriptor`'s own `get_Type`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308    pub unsafe fn get_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
309        let __mi = Self::get_type_method_info();
310        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
311        __inner(this.into(), ::core::option::Option::None)
312    }
313
314    #[doc = "Direct (non-virtual) call to `IUserDataDescriptor`'s own `Index`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
315    pub unsafe fn index(
316        this: impl ::core::convert::Into<::unity::IlInstance>,
317        script: crate::moon_sharp::interpreter::script::Script,
318        obj: crate::system::object::Object,
319        index: crate::moon_sharp::interpreter::dynvalue::DynValue,
320        is_direct_indexing: bool,
321    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
322        let __mi = Self::index_method_info();
323        let __inner: extern "C" fn(
324            ::unity::IlInstance,
325            crate::moon_sharp::interpreter::script::Script,
326            crate::system::object::Object,
327            crate::moon_sharp::interpreter::dynvalue::DynValue,
328            bool,
329            ::unity::OptionalMethod,
330        ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
331        __inner(this.into(), script, obj, index, is_direct_indexing, ::core::option::Option::None)
332    }
333
334    #[doc = "Direct (non-virtual) call to `IUserDataDescriptor`'s own `SetIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
335    pub unsafe fn set_index(
336        this: impl ::core::convert::Into<::unity::IlInstance>,
337        script: crate::moon_sharp::interpreter::script::Script,
338        obj: crate::system::object::Object,
339        index: crate::moon_sharp::interpreter::dynvalue::DynValue,
340        value: crate::moon_sharp::interpreter::dynvalue::DynValue,
341        is_direct_indexing: bool,
342    ) -> bool {
343        let __mi = Self::set_index_method_info();
344        let __inner: extern "C" fn(
345            ::unity::IlInstance,
346            crate::moon_sharp::interpreter::script::Script,
347            crate::system::object::Object,
348            crate::moon_sharp::interpreter::dynvalue::DynValue,
349            crate::moon_sharp::interpreter::dynvalue::DynValue,
350            bool,
351            ::unity::OptionalMethod,
352        ) -> bool = ::core::mem::transmute(__mi.method_ptr);
353        __inner(this.into(), script, obj, index, value, is_direct_indexing, ::core::option::Option::None)
354    }
355
356    #[doc = "Direct (non-virtual) call to `IUserDataDescriptor`'s own `AsString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
357    pub unsafe fn as_string(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> ::unity::Il2CppString {
358        let __mi = Self::as_string_method_info();
359        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> ::unity::Il2CppString =
360            ::core::mem::transmute(__mi.method_ptr);
361        __inner(this.into(), obj, ::core::option::Option::None)
362    }
363
364    #[doc = "Direct (non-virtual) call to `IUserDataDescriptor`'s own `MetaIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
365    pub unsafe fn meta_index(
366        this: impl ::core::convert::Into<::unity::IlInstance>,
367        script: crate::moon_sharp::interpreter::script::Script,
368        obj: crate::system::object::Object,
369        metaname: ::unity::Il2CppString,
370    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
371        let __mi = Self::meta_index_method_info();
372        let __inner: extern "C" fn(
373            ::unity::IlInstance,
374            crate::moon_sharp::interpreter::script::Script,
375            crate::system::object::Object,
376            ::unity::Il2CppString,
377            ::unity::OptionalMethod,
378        ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
379        __inner(this.into(), script, obj, metaname, ::core::option::Option::None)
380    }
381
382    #[doc = "Direct (non-virtual) call to `IUserDataDescriptor`'s own `IsTypeCompatible`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
383    pub unsafe fn is_type_compatible(
384        this: impl ::core::convert::Into<::unity::IlInstance>,
385        r#type: ::unity::SystemType,
386        obj: crate::system::object::Object,
387    ) -> bool {
388        let __mi = Self::is_type_compatible_method_info();
389        let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
390            ::core::mem::transmute(__mi.method_ptr);
391        __inner(this.into(), r#type, obj, ::core::option::Option::None)
392    }
393}
394
395#[cfg(feature = "moon_sharp-interpreter-interop-iuserdatadescriptor")]
396#[doc(hidden)]
397pub mod prelude {
398    pub use super::{IIUserDataDescriptor, IIUserDataDescriptorMethods, IUserDataDescriptor};
399}