1#[cfg(feature = "app-materialmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 system::{
11 delegate::{Delegate, IDelegate},
12 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
13 object::{IObject, Object},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/materialmenuitem/MaterialMenuItem_SelectEventHandler.md"))]
18 #[::unity::class(namespace = "App", name = "MaterialMenuItem.SelectEventHandler")]
19 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
20 pub struct MaterialMenuItem_SelectEventHandler {}
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/materialmenuitem/MaterialMenuItem.md"))]
23 #[::unity::class(namespace = "App", name = "MaterialMenuItem")]
24 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
25 pub struct MaterialMenuItem {
26 #[offset(112)]
27 #[rename(name = "m_SelectEventHandler")]
28 pub m_select_event_handler: crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler,
29 #[offset(120)]
30 #[rename(name = "m_DecideEventHandler")]
31 pub m_decide_event_handler: crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler,
32 }
33
34 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/materialmenuitem/MaterialMenuItem_DecideEventHandler.md"))]
35 #[::unity::class(namespace = "App", name = "MaterialMenuItem.DecideEventHandler")]
36 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
37 pub struct MaterialMenuItem_DecideEventHandler {}
38}
39
40#[cfg(feature = "app-materialmenuitem-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-materialmenuitem")]
44pub trait IMaterialMenuItem_SelectEventHandlerMethods: IMaterialMenuItem_SelectEventHandler {
45 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
46 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
47 unsafe {
48 let __receiver = <MaterialMenuItem_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
49 <Self as ::unity::SystemObject>::as_instance(self),
50 );
51 ::unity::il2cpp_call!((::unity::module_base()+0x208d950usize)as*mut u8,();
52(MaterialMenuItem_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
53 }
54 }
55 #[doc = "`Invoke(::unity::Il2CppString)` overload"]
56 fn invoke(self, material_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
57 unsafe {
58 let __receiver = <MaterialMenuItem_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
59 <Self as ::unity::SystemObject>::as_instance(self),
60 );
61 {
62 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
64 panic!(
65 "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70 13usize,
71 __vt.len(),
72 <MaterialMenuItem_SelectEventHandler as ::unity::ClassIdentity>::NAME,
73 "Invoke",
74 )
75 });
76 let __inner: extern "C" fn(MaterialMenuItem_SelectEventHandler, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
77 ::core::mem::transmute(__vi.method_ptr);
78 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
79 __inner(__receiver, ::core::convert::Into::into(material_id), __mi)
80 }
81 }
82 }
83}
84
85#[cfg(feature = "app-materialmenuitem")]
86impl<__T: IMaterialMenuItem_SelectEventHandler> IMaterialMenuItem_SelectEventHandlerMethods for __T {}
87
88#[cfg(feature = "app-materialmenuitem")]
89impl MaterialMenuItem_SelectEventHandler {
90 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92 }
93
94 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
96 }
97}
98
99#[cfg(feature = "app-materialmenuitem")]
100impl MaterialMenuItem_SelectEventHandler {
101 #[doc = "Direct (non-virtual) call to `MaterialMenuItem_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
102 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, material_id: ::unity::Il2CppString) -> () {
103 let __mi = Self::invoke_method_info();
104 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
105 ::core::mem::transmute(__mi.method_ptr);
106 __inner(this.into(), material_id, ::core::option::Option::None)
107 }
108}
109
110#[cfg(feature = "app-materialmenuitem")]
111impl MaterialMenuItem_SelectEventHandler {
112 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
113 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
114 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
115 panic!(
116 "{}
117::{}
118 failed to instantiate",
119 ::core::stringify!(MaterialMenuItem_SelectEventHandler),
120 ::core::stringify!(new),
121 )
122 });
123 <Self as IMaterialMenuItem_SelectEventHandlerMethods>::ctor(this, object, method);
124 this
125 }
126}
127
128#[cfg(feature = "app-materialmenuitem")]
129pub trait IMaterialMenuItemMethods: IMaterialMenuItem {
130 #[doc = "`get_m_ItemRefineExchangeData()` overload"]
131 fn get_m_item_refine_exchange_data(self) -> crate::app::itemrefineexchangedata::ItemRefineExchangeData {
132 unsafe {
133 let __receiver = <MaterialMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x25ca0d0usize)as*mut u8,crate::app::itemrefineexchangedata::ItemRefineExchangeData;
135(MaterialMenuItem)__receiver)
136 }
137 }
138 #[doc = "`set_m_ItemRefineExchangeData(crate::app::itemrefineexchangedata::ItemRefineExchangeData)` overload"]
139 fn set_m_item_refine_exchange_data(self, value: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>) -> () {
140 unsafe {
141 let __receiver = <MaterialMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x25ca0e0usize)as*mut u8,();
143(MaterialMenuItem)__receiver,(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(value))
144 }
145 }
146 #[doc = "`.ctor(crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler, crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler)` overload"]
147 fn ctor(
148 self,
149 item_refine_exchange_data: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>,
150 select_event_handler: impl ::core::convert::Into<crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler>,
151 decide_event_handler: impl ::core::convert::Into<crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler>,
152 ) -> () {
153 unsafe {
154 let __receiver = <MaterialMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x25ca0f0usize)as*mut u8,();
156(MaterialMenuItem)__receiver,(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(item_refine_exchange_data),(crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
157 }
158 }
159 #[doc = "`GetName()` overload"]
160 fn get_name(self) -> ::unity::Il2CppString {
161 unsafe {
162 let __receiver = <MaterialMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 {
164 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
165 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
166 panic!(
167 "unity: virtual slot {}
168 out of range (vtable len {}
169) on the runtime class behind {}
170 (method `{}
171`)",
172 4usize,
173 __vt.len(),
174 <MaterialMenuItem as ::unity::ClassIdentity>::NAME,
175 "GetName",
176 )
177 });
178 let __inner: extern "C" fn(MaterialMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
179 ::core::mem::transmute(__vi.method_ptr);
180 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
181 __inner(__receiver, __mi)
182 }
183 }
184 }
185 #[doc = "`SetSelectEventHandler(crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler)` overload"]
186 fn set_select_event_handler(
187 self,
188 select_event_handler: impl ::core::convert::Into<crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler>,
189 ) -> () {
190 unsafe {
191 let __receiver = <MaterialMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x25ca170usize)as*mut u8,();
193(MaterialMenuItem)__receiver,(crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler))
194 }
195 }
196 #[doc = "`OnSelect()` overload"]
197 fn on_select(self) -> () {
198 unsafe {
199 let __receiver = <MaterialMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 {
201 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
202 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
203 panic!(
204 "unity: virtual slot {}
205 out of range (vtable len {}
206) on the runtime class behind {}
207 (method `{}
208`)",
209 12usize,
210 __vt.len(),
211 <MaterialMenuItem as ::unity::ClassIdentity>::NAME,
212 "OnSelect",
213 )
214 });
215 let __inner: extern "C" fn(MaterialMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
216 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
217 __inner(__receiver, __mi)
218 }
219 }
220 }
221 #[doc = "`ACall()` overload"]
222 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
223 unsafe {
224 let __receiver = <MaterialMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 {
226 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
227 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
228 panic!(
229 "unity: virtual slot {}
230 out of range (vtable len {}
231) on the runtime class behind {}
232 (method `{}
233`)",
234 18usize,
235 __vt.len(),
236 <MaterialMenuItem as ::unity::ClassIdentity>::NAME,
237 "ACall",
238 )
239 });
240 let __inner: extern "C" fn(MaterialMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
241 ::core::mem::transmute(__vi.method_ptr);
242 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
243 __inner(__receiver, __mi)
244 }
245 }
246 }
247}
248
249#[cfg(feature = "app-materialmenuitem")]
250impl<__T: IMaterialMenuItem> IMaterialMenuItemMethods for __T {}
251
252#[cfg(feature = "app-materialmenuitem")]
253impl MaterialMenuItem {
254 pub fn get_m_item_refine_exchange_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
256 }
257
258 pub fn set_m_item_refine_exchange_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
260 }
261
262 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
264 }
265
266 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
268 }
269
270 pub fn set_select_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
272 }
273
274 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
276 }
277
278 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
280 }
281}
282
283#[cfg(feature = "app-materialmenuitem")]
284impl MaterialMenuItem {
285 #[doc = "Direct (non-virtual) call to `MaterialMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
286 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
287 let __mi = Self::get_name_method_info();
288 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
289 __inner(this.into(), ::core::option::Option::None)
290 }
291
292 #[doc = "Direct (non-virtual) call to `MaterialMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
293 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
294 let __mi = Self::on_select_method_info();
295 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
296 __inner(this.into(), ::core::option::Option::None)
297 }
298
299 #[doc = "Direct (non-virtual) call to `MaterialMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
300 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
301 let __mi = Self::a_call_method_info();
302 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
303 ::core::mem::transmute(__mi.method_ptr);
304 __inner(this.into(), ::core::option::Option::None)
305 }
306}
307
308#[cfg(feature = "app-materialmenuitem")]
309impl MaterialMenuItem {
310 #[doc = "`.ctor(crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler, crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler)` — overload selector"]
311 pub fn new(
312 item_refine_exchange_data: crate::app::itemrefineexchangedata::ItemRefineExchangeData,
313 select_event_handler: crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler,
314 decide_event_handler: crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler,
315 ) -> Self {
316 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
317 panic!(
318 "{}
319::{}
320 failed to instantiate",
321 ::core::stringify!(MaterialMenuItem),
322 ::core::stringify!(new),
323 )
324 });
325 <Self as IMaterialMenuItemMethods>::ctor(this, item_refine_exchange_data, select_event_handler, decide_event_handler);
326 this
327 }
328}
329
330#[cfg(feature = "app-materialmenuitem")]
331pub trait IMaterialMenuItem_DecideEventHandlerMethods: IMaterialMenuItem_DecideEventHandler {
332 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
333 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
334 unsafe {
335 let __receiver = <MaterialMenuItem_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
336 <Self as ::unity::SystemObject>::as_instance(self),
337 );
338 ::unity::il2cpp_call!((::unity::module_base()+0x208d590usize)as*mut u8,();
339(MaterialMenuItem_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
340 }
341 }
342 #[doc = "`Invoke(::unity::Il2CppString)` overload"]
343 fn invoke(self, material_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
344 unsafe {
345 let __receiver = <MaterialMenuItem_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
346 <Self as ::unity::SystemObject>::as_instance(self),
347 );
348 {
349 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
350 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
351 panic!(
352 "unity: virtual slot {}
353 out of range (vtable len {}
354) on the runtime class behind {}
355 (method `{}
356`)",
357 13usize,
358 __vt.len(),
359 <MaterialMenuItem_DecideEventHandler as ::unity::ClassIdentity>::NAME,
360 "Invoke",
361 )
362 });
363 let __inner: extern "C" fn(MaterialMenuItem_DecideEventHandler, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
364 ::core::mem::transmute(__vi.method_ptr);
365 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
366 __inner(__receiver, ::core::convert::Into::into(material_id), __mi)
367 }
368 }
369 }
370}
371
372#[cfg(feature = "app-materialmenuitem")]
373impl<__T: IMaterialMenuItem_DecideEventHandler> IMaterialMenuItem_DecideEventHandlerMethods for __T {}
374
375#[cfg(feature = "app-materialmenuitem")]
376impl MaterialMenuItem_DecideEventHandler {
377 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
379 }
380
381 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
383 }
384}
385
386#[cfg(feature = "app-materialmenuitem")]
387impl MaterialMenuItem_DecideEventHandler {
388 #[doc = "Direct (non-virtual) call to `MaterialMenuItem_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
389 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, material_id: ::unity::Il2CppString) -> () {
390 let __mi = Self::invoke_method_info();
391 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
392 ::core::mem::transmute(__mi.method_ptr);
393 __inner(this.into(), material_id, ::core::option::Option::None)
394 }
395}
396
397#[cfg(feature = "app-materialmenuitem")]
398impl MaterialMenuItem_DecideEventHandler {
399 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
400 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
401 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
402 panic!(
403 "{}
404::{}
405 failed to instantiate",
406 ::core::stringify!(MaterialMenuItem_DecideEventHandler),
407 ::core::stringify!(new),
408 )
409 });
410 <Self as IMaterialMenuItem_DecideEventHandlerMethods>::ctor(this, object, method);
411 this
412 }
413}
414
415#[cfg(feature = "app-materialmenuitem")]
416#[doc(hidden)]
417pub mod prelude {
418 pub use super::{
419 IMaterialMenuItem, IMaterialMenuItemMethods, IMaterialMenuItem_DecideEventHandler, IMaterialMenuItem_DecideEventHandlerMethods,
420 IMaterialMenuItem_SelectEventHandler, IMaterialMenuItem_SelectEventHandlerMethods, MaterialMenuItem, MaterialMenuItem_DecideEventHandler,
421 MaterialMenuItem_SelectEventHandler,
422 };
423 #[cfg(feature = "app-basicmenuitem")]
424 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
425 #[cfg(feature = "system-delegate")]
426 pub use crate::system::delegate::IDelegateMethods;
427 #[cfg(feature = "system-multicastdelegate")]
428 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
429 #[cfg(feature = "system-object")]
430 pub use crate::system::object::IObjectMethods;
431 pub use crate::{
432 app::basicmenuitem::IBasicMenuItem,
433 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
434 };
435}