engage/generated/moon_sharp/interpreter/interop/basic_descriptors/
imemberdescriptor_interface.rs1#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-imemberdescriptor_interface-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/basic_descriptors/imemberdescriptor_interface/IMemberDescriptor_Interface.md"))]
10 #[::unity::class(namespace = "MoonSharp.Interpreter.Interop.BasicDescriptors", name = "IMemberDescriptor")]
11 pub struct IMemberDescriptor_Interface {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-imemberdescriptor_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-imemberdescriptor_interface")]
18pub trait IIMemberDescriptor_InterfaceMethods: IIMemberDescriptor_Interface {
19 #[doc = "`get_IsStatic()` overload"]
20 fn get_is_static(self) -> bool {
21 unsafe {
22 let __receiver =
23 <IMemberDescriptor_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24 {
25 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
26 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
27 panic!(
28 "unity: virtual slot {}
29 out of range (vtable len {}
30) on the runtime class behind {}
31 (method `{}
32`)",
33 0usize,
34 __vt.len(),
35 <IMemberDescriptor_Interface as ::unity::ClassIdentity>::NAME,
36 "get_IsStatic",
37 )
38 });
39 let __inner: extern "C" fn(IMemberDescriptor_Interface, ::unity::OptionalMethod) -> bool = ::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_Name()` overload"]
46 fn get_name(self) -> ::unity::Il2CppString {
47 unsafe {
48 let __receiver =
49 <IMemberDescriptor_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 {
51 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
52 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
53 panic!(
54 "unity: virtual slot {}
55 out of range (vtable len {}
56) on the runtime class behind {}
57 (method `{}
58`)",
59 1usize,
60 __vt.len(),
61 <IMemberDescriptor_Interface as ::unity::ClassIdentity>::NAME,
62 "get_Name",
63 )
64 });
65 let __inner: extern "C" fn(IMemberDescriptor_Interface, ::unity::OptionalMethod) -> ::unity::Il2CppString =
66 ::core::mem::transmute(__vi.method_ptr);
67 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68 __inner(__receiver, __mi)
69 }
70 }
71 }
72 #[doc = "`get_MemberAccess()` overload"]
73 fn get_member_access(self) -> crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess {
74 unsafe {
75 let __receiver =
76 <IMemberDescriptor_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 {
78 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
80 panic!(
81 "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86 2usize,
87 __vt.len(),
88 <IMemberDescriptor_Interface as ::unity::ClassIdentity>::NAME,
89 "get_MemberAccess",
90 )
91 });
92 let __inner:extern "C" fn(IMemberDescriptor_Interface, ::unity::OptionalMethod,)->crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess= ::core::mem::transmute(__vi.method_ptr);
93 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94 __inner(__receiver, __mi)
95 }
96 }
97 }
98 #[doc = "`GetValue(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object)` overload"]
99 fn get_value(
100 self,
101 script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
102 obj: impl ::core::convert::Into<crate::system::object::Object>,
103 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
104 unsafe {
105 let __receiver =
106 <IMemberDescriptor_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 {
108 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
110 panic!(
111 "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116 3usize,
117 __vt.len(),
118 <IMemberDescriptor_Interface as ::unity::ClassIdentity>::NAME,
119 "GetValue",
120 )
121 });
122 let __inner: extern "C" fn(
123 IMemberDescriptor_Interface,
124 crate::moon_sharp::interpreter::script::Script,
125 crate::system::object::Object,
126 ::unity::OptionalMethod,
127 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
128 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
129 __inner(__receiver, ::core::convert::Into::into(script), ::core::convert::Into::into(obj), __mi)
130 }
131 }
132 }
133 #[doc = "`SetValue(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
134 fn set_value(
135 self,
136 script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
137 obj: impl ::core::convert::Into<crate::system::object::Object>,
138 value: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>,
139 ) -> () {
140 unsafe {
141 let __receiver =
142 <IMemberDescriptor_Interface 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(4usize).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 4usize,
153 __vt.len(),
154 <IMemberDescriptor_Interface as ::unity::ClassIdentity>::NAME,
155 "SetValue",
156 )
157 });
158 let __inner: extern "C" fn(
159 IMemberDescriptor_Interface,
160 crate::moon_sharp::interpreter::script::Script,
161 crate::system::object::Object,
162 crate::moon_sharp::interpreter::dynvalue::DynValue,
163 ::unity::OptionalMethod,
164 ) -> () = ::core::mem::transmute(__vi.method_ptr);
165 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
166 __inner(
167 __receiver,
168 ::core::convert::Into::into(script),
169 ::core::convert::Into::into(obj),
170 ::core::convert::Into::into(value),
171 __mi,
172 )
173 }
174 }
175 }
176}
177
178#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-imemberdescriptor_interface")]
179impl<__T: IIMemberDescriptor_Interface> IIMemberDescriptor_InterfaceMethods for __T {}
180
181#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-imemberdescriptor_interface")]
182impl IMemberDescriptor_Interface {
183 pub fn get_is_static_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185 }
186
187 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189 }
190
191 pub fn get_member_access_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
193 }
194
195 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
197 }
198
199 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
201 }
202}
203
204#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-imemberdescriptor_interface")]
205impl IMemberDescriptor_Interface {
206 #[doc = "Direct (non-virtual) call to `IMemberDescriptor_Interface`'s own `get_IsStatic`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
207 pub unsafe fn get_is_static(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
208 let __mi = Self::get_is_static_method_info();
209 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
210 __inner(this.into(), ::core::option::Option::None)
211 }
212
213 #[doc = "Direct (non-virtual) call to `IMemberDescriptor_Interface`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
214 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
215 let __mi = Self::get_name_method_info();
216 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
217 __inner(this.into(), ::core::option::Option::None)
218 }
219
220 #[doc = "Direct (non-virtual) call to `IMemberDescriptor_Interface`'s own `get_MemberAccess`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
221 pub unsafe fn get_member_access(
222 this: impl ::core::convert::Into<::unity::IlInstance>,
223 ) -> crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess {
224 let __mi = Self::get_member_access_method_info();
225 let __inner: extern "C" fn(
226 ::unity::IlInstance,
227 ::unity::OptionalMethod,
228 )
229 -> crate::moon_sharp::interpreter::interop::basic_descriptors::memberdescriptoraccess::MemberDescriptorAccess =
230 ::core::mem::transmute(__mi.method_ptr);
231 __inner(this.into(), ::core::option::Option::None)
232 }
233
234 #[doc = "Direct (non-virtual) call to `IMemberDescriptor_Interface`'s own `GetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
235 pub unsafe fn get_value(
236 this: impl ::core::convert::Into<::unity::IlInstance>,
237 script: crate::moon_sharp::interpreter::script::Script,
238 obj: crate::system::object::Object,
239 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
240 let __mi = Self::get_value_method_info();
241 let __inner: extern "C" fn(
242 ::unity::IlInstance,
243 crate::moon_sharp::interpreter::script::Script,
244 crate::system::object::Object,
245 ::unity::OptionalMethod,
246 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
247 __inner(this.into(), script, obj, ::core::option::Option::None)
248 }
249
250 #[doc = "Direct (non-virtual) call to `IMemberDescriptor_Interface`'s own `SetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
251 pub unsafe fn set_value(
252 this: impl ::core::convert::Into<::unity::IlInstance>,
253 script: crate::moon_sharp::interpreter::script::Script,
254 obj: crate::system::object::Object,
255 value: crate::moon_sharp::interpreter::dynvalue::DynValue,
256 ) -> () {
257 let __mi = Self::set_value_method_info();
258 let __inner: extern "C" fn(
259 ::unity::IlInstance,
260 crate::moon_sharp::interpreter::script::Script,
261 crate::system::object::Object,
262 crate::moon_sharp::interpreter::dynvalue::DynValue,
263 ::unity::OptionalMethod,
264 ) -> () = ::core::mem::transmute(__mi.method_ptr);
265 __inner(this.into(), script, obj, value, ::core::option::Option::None)
266 }
267}
268
269#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-imemberdescriptor_interface")]
270#[doc(hidden)]
271pub mod prelude {
272 pub use super::{IIMemberDescriptor_Interface, IIMemberDescriptor_InterfaceMethods, IMemberDescriptor_Interface};
273}