1#[cfg(feature = "app-ringmenuitem-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/ringmenuitem/RingMenuItem.md"))]
18 #[::unity::class(namespace = "App", name = "RingMenuItem")]
19 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
20 pub struct RingMenuItem {
21 #[offset(136)]
22 #[rename(name = "m_SelectEventHandler")]
23 pub m_select_event_handler: crate::app::ringmenuitem::RingMenuItem_SelectEventHandler,
24 #[offset(144)]
25 #[rename(name = "m_DecideEventHandler")]
26 pub m_decide_event_handler: crate::app::ringmenuitem::RingMenuItem_DecideEventHandler,
27 }
28
29 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/ringmenuitem/RingMenuItem_DecideEventHandler.md"))]
30 #[::unity::class(namespace = "App", name = "RingMenuItem.DecideEventHandler")]
31 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
32 pub struct RingMenuItem_DecideEventHandler {}
33
34 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/ringmenuitem/RingMenuItem_SelectEventHandler.md"))]
35 #[::unity::class(namespace = "App", name = "RingMenuItem.SelectEventHandler")]
36 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
37 pub struct RingMenuItem_SelectEventHandler {}
38}
39
40#[cfg(feature = "app-ringmenuitem-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-ringmenuitem")]
44pub trait IRingMenuItemMethods: IRingMenuItem {
45 #[doc = "`get_m_RingData()` overload"]
46 fn get_m_ring_data(self) -> crate::app::ringdata::RingData {
47 unsafe {
48 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x2430ec0usize)as*mut u8,crate::app::ringdata::RingData;
50(RingMenuItem)__receiver)
51 }
52 }
53 #[doc = "`set_m_RingData(crate::app::ringdata::RingData)` overload"]
54 fn set_m_ring_data(self, value: impl ::core::convert::Into<crate::app::ringdata::RingData>) -> () {
55 unsafe {
56 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x2430ed0usize)as*mut u8,();
58(RingMenuItem)__receiver,(crate::app::ringdata::RingData)::core::convert::Into::into(value))
59 }
60 }
61 #[doc = "`get_m_IsEquipped()` overload"]
62 fn get_m_is_equipped(self) -> bool {
63 unsafe {
64 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x2430ee0usize)as*mut u8,bool;
66(RingMenuItem)__receiver)
67 }
68 }
69 #[doc = "`set_m_IsEquipped(bool)` overload"]
70 fn set_m_is_equipped(self, value: impl ::core::convert::Into<bool>) -> () {
71 unsafe {
72 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x2430ef0usize)as*mut u8,();
74(RingMenuItem)__receiver,(bool)::core::convert::Into::into(value))
75 }
76 }
77 #[doc = "`get_m_Count()` overload"]
78 fn get_m_count(self) -> i32 {
79 unsafe {
80 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x2430f00usize)as*mut u8,i32;
82(RingMenuItem)__receiver)
83 }
84 }
85 #[doc = "`set_m_Count(i32)` overload"]
86 fn set_m_count(self, value: impl ::core::convert::Into<i32>) -> () {
87 unsafe {
88 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x2430f10usize)as*mut u8,();
90(RingMenuItem)__receiver,(i32)::core::convert::Into::into(value))
91 }
92 }
93 #[doc = "`get_m_NeededCountToNext()` overload"]
94 fn get_m_needed_count_to_next(self) -> i32 {
95 unsafe {
96 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x2430f20usize)as*mut u8,i32;
98(RingMenuItem)__receiver)
99 }
100 }
101 #[doc = "`set_m_NeededCountToNext(i32)` overload"]
102 fn set_m_needed_count_to_next(self, value: impl ::core::convert::Into<i32>) -> () {
103 unsafe {
104 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x2430f30usize)as*mut u8,();
106(RingMenuItem)__receiver,(i32)::core::convert::Into::into(value))
107 }
108 }
109 #[doc = "`get_m_NeededPieceOfBondsToNext()` overload"]
110 fn get_m_needed_piece_of_bonds_to_next(self) -> i32 {
111 unsafe {
112 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x2430f40usize)as*mut u8,i32;
114(RingMenuItem)__receiver)
115 }
116 }
117 #[doc = "`set_m_NeededPieceOfBondsToNext(i32)` overload"]
118 fn set_m_needed_piece_of_bonds_to_next(self, value: impl ::core::convert::Into<i32>) -> () {
119 unsafe {
120 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x2430f50usize)as*mut u8,();
122(RingMenuItem)__receiver,(i32)::core::convert::Into::into(value))
123 }
124 }
125 #[doc = "`get_m_IsEnoughCount()` overload"]
126 fn get_m_is_enough_count(self) -> bool {
127 unsafe {
128 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x2430f60usize)as*mut u8,bool;
130(RingMenuItem)__receiver)
131 }
132 }
133 #[doc = "`set_m_IsEnoughCount(bool)` overload"]
134 fn set_m_is_enough_count(self, value: impl ::core::convert::Into<bool>) -> () {
135 unsafe {
136 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x2430f70usize)as*mut u8,();
138(RingMenuItem)__receiver,(bool)::core::convert::Into::into(value))
139 }
140 }
141 #[doc = "`get_m_IsEnoughPieceOfBond()` overload"]
142 fn get_m_is_enough_piece_of_bond(self) -> bool {
143 unsafe {
144 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x2430f80usize)as*mut u8,bool;
146(RingMenuItem)__receiver)
147 }
148 }
149 #[doc = "`set_m_IsEnoughPieceOfBond(bool)` overload"]
150 fn set_m_is_enough_piece_of_bond(self, value: impl ::core::convert::Into<bool>) -> () {
151 unsafe {
152 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x2430f90usize)as*mut u8,();
154(RingMenuItem)__receiver,(bool)::core::convert::Into::into(value))
155 }
156 }
157 #[doc = "`IsEmpty()` overload"]
158 fn is_empty(self) -> bool {
159 unsafe {
160 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x2430fa0usize)as*mut u8,bool;
162(RingMenuItem)__receiver)
163 }
164 }
165 #[doc = "`.ctor(crate::app::ringdata::RingData, bool, i32, crate::app::ringmenuitem::RingMenuItem_SelectEventHandler, crate::app::ringmenuitem::RingMenuItem_DecideEventHandler)` overload"]
166 fn ctor(
167 self,
168 ring_data: impl ::core::convert::Into<crate::app::ringdata::RingData>,
169 is_equipped: impl ::core::convert::Into<bool>,
170 count: impl ::core::convert::Into<i32>,
171 select_event_handler: impl ::core::convert::Into<crate::app::ringmenuitem::RingMenuItem_SelectEventHandler>,
172 decide_event_handler: impl ::core::convert::Into<crate::app::ringmenuitem::RingMenuItem_DecideEventHandler>,
173 ) -> () {
174 unsafe {
175 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x24268a0usize)as*mut u8,();
177(RingMenuItem)__receiver,(crate::app::ringdata::RingData)::core::convert::Into::into(ring_data),(bool)::core::convert::Into::into(is_equipped),(i32)::core::convert::Into::into(count),(crate::app::ringmenuitem::RingMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::ringmenuitem::RingMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
178 }
179 }
180 #[doc = "`GetName()` overload"]
181 fn get_name(self) -> ::unity::Il2CppString {
182 unsafe {
183 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 {
185 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
186 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
187 panic!(
188 "unity: virtual slot {}
189 out of range (vtable len {}
190) on the runtime class behind {}
191 (method `{}
192`)",
193 4usize,
194 __vt.len(),
195 <RingMenuItem as ::unity::ClassIdentity>::NAME,
196 "GetName",
197 )
198 });
199 let __inner: extern "C" fn(RingMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
200 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
201 __inner(__receiver, __mi)
202 }
203 }
204 }
205 #[doc = "`BuildAttribute()` overload"]
206 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
207 unsafe {
208 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209 {
210 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
211 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
212 panic!(
213 "unity: virtual slot {}
214 out of range (vtable len {}
215) on the runtime class behind {}
216 (method `{}
217`)",
218 8usize,
219 __vt.len(),
220 <RingMenuItem as ::unity::ClassIdentity>::NAME,
221 "BuildAttribute",
222 )
223 });
224 let __inner: extern "C" fn(RingMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
225 ::core::mem::transmute(__vi.method_ptr);
226 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
227 __inner(__receiver, __mi)
228 }
229 }
230 }
231 #[doc = "`OnBuild()` overload"]
232 fn on_build(self) -> () {
233 unsafe {
234 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 {
236 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
237 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
238 panic!(
239 "unity: virtual slot {}
240 out of range (vtable len {}
241) on the runtime class behind {}
242 (method `{}
243`)",
244 10usize,
245 __vt.len(),
246 <RingMenuItem as ::unity::ClassIdentity>::NAME,
247 "OnBuild",
248 )
249 });
250 let __inner: extern "C" fn(RingMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
251 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
252 __inner(__receiver, __mi)
253 }
254 }
255 }
256 #[doc = "`OnBuildMenuItemContent()` overload"]
257 fn on_build_menu_item_content(self) -> () {
258 unsafe {
259 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 {
261 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
262 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
263 panic!(
264 "unity: virtual slot {}
265 out of range (vtable len {}
266) on the runtime class behind {}
267 (method `{}
268`)",
269 11usize,
270 __vt.len(),
271 <RingMenuItem as ::unity::ClassIdentity>::NAME,
272 "OnBuildMenuItemContent",
273 )
274 });
275 let __inner: extern "C" fn(RingMenuItem, ::unity::OptionalMethod) -> () = ::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 = "`SetInitialColor()` overload"]
282 fn set_initial_color(self) -> () {
283 unsafe {
284 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x24310d0usize)as*mut u8,();
286(RingMenuItem)__receiver)
287 }
288 }
289 #[doc = "`OnSelect()` overload"]
290 fn on_select(self) -> () {
291 unsafe {
292 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 {
294 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
295 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
296 panic!(
297 "unity: virtual slot {}
298 out of range (vtable len {}
299) on the runtime class behind {}
300 (method `{}
301`)",
302 12usize,
303 __vt.len(),
304 <RingMenuItem as ::unity::ClassIdentity>::NAME,
305 "OnSelect",
306 )
307 });
308 let __inner: extern "C" fn(RingMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
309 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
310 __inner(__receiver, __mi)
311 }
312 }
313 }
314 #[doc = "`ACall()` overload"]
315 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
316 unsafe {
317 let __receiver = <RingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
318 {
319 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
320 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
321 panic!(
322 "unity: virtual slot {}
323 out of range (vtable len {}
324) on the runtime class behind {}
325 (method `{}
326`)",
327 18usize,
328 __vt.len(),
329 <RingMenuItem as ::unity::ClassIdentity>::NAME,
330 "ACall",
331 )
332 });
333 let __inner: extern "C" fn(RingMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
334 ::core::mem::transmute(__vi.method_ptr);
335 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
336 __inner(__receiver, __mi)
337 }
338 }
339 }
340}
341
342#[cfg(feature = "app-ringmenuitem")]
343impl<__T: IRingMenuItem> IRingMenuItemMethods for __T {}
344
345#[cfg(feature = "app-ringmenuitem")]
346impl RingMenuItem {
347 pub fn get_m_ring_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
349 }
350
351 pub fn set_m_ring_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
353 }
354
355 pub fn get_m_is_equipped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
357 }
358
359 pub fn set_m_is_equipped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
361 }
362
363 pub fn get_m_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
365 }
366
367 pub fn set_m_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
369 }
370
371 pub fn get_m_needed_count_to_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
373 }
374
375 pub fn set_m_needed_count_to_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
377 }
378
379 pub fn get_m_needed_piece_of_bonds_to_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
381 }
382
383 pub fn set_m_needed_piece_of_bonds_to_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
385 }
386
387 pub fn get_m_is_enough_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
389 }
390
391 pub fn set_m_is_enough_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
393 }
394
395 pub fn get_m_is_enough_piece_of_bond_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
397 }
398
399 pub fn set_m_is_enough_piece_of_bond_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
401 }
402
403 pub fn is_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
405 }
406
407 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
409 }
410
411 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
413 }
414
415 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
417 }
418
419 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
421 }
422
423 pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
425 }
426
427 pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
429 }
430
431 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
433 }
434
435 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
437 }
438}
439
440#[cfg(feature = "app-ringmenuitem")]
441impl RingMenuItem {
442 #[doc = "Direct (non-virtual) call to `RingMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
443 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
444 let __mi = Self::get_name_method_info();
445 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
446 __inner(this.into(), ::core::option::Option::None)
447 }
448
449 #[doc = "Direct (non-virtual) call to `RingMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
450 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
451 let __mi = Self::build_attribute_method_info();
452 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
453 ::core::mem::transmute(__mi.method_ptr);
454 __inner(this.into(), ::core::option::Option::None)
455 }
456
457 #[doc = "Direct (non-virtual) call to `RingMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
458 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
459 let __mi = Self::on_build_method_info();
460 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
461 __inner(this.into(), ::core::option::Option::None)
462 }
463
464 #[doc = "Direct (non-virtual) call to `RingMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
465 pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
466 let __mi = Self::on_build_menu_item_content_method_info();
467 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
468 __inner(this.into(), ::core::option::Option::None)
469 }
470
471 #[doc = "Direct (non-virtual) call to `RingMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
472 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
473 let __mi = Self::on_select_method_info();
474 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
475 __inner(this.into(), ::core::option::Option::None)
476 }
477
478 #[doc = "Direct (non-virtual) call to `RingMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
479 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
480 let __mi = Self::a_call_method_info();
481 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
482 ::core::mem::transmute(__mi.method_ptr);
483 __inner(this.into(), ::core::option::Option::None)
484 }
485}
486
487#[cfg(feature = "app-ringmenuitem")]
488impl RingMenuItem {
489 #[doc = "`.ctor(crate::app::ringdata::RingData, bool, i32, crate::app::ringmenuitem::RingMenuItem_SelectEventHandler, crate::app::ringmenuitem::RingMenuItem_DecideEventHandler)` — overload selector"]
490 pub fn new(
491 ring_data: crate::app::ringdata::RingData,
492 is_equipped: bool,
493 count: i32,
494 select_event_handler: crate::app::ringmenuitem::RingMenuItem_SelectEventHandler,
495 decide_event_handler: crate::app::ringmenuitem::RingMenuItem_DecideEventHandler,
496 ) -> Self {
497 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
498 panic!(
499 "{}
500::{}
501 failed to instantiate",
502 ::core::stringify!(RingMenuItem),
503 ::core::stringify!(new),
504 )
505 });
506 <Self as IRingMenuItemMethods>::ctor(this, ring_data, is_equipped, count, select_event_handler, decide_event_handler);
507 this
508 }
509}
510
511#[cfg(feature = "app-ringmenuitem")]
512pub trait IRingMenuItem_DecideEventHandlerMethods: IRingMenuItem_DecideEventHandler {
513 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
514 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
515 unsafe {
516 let __receiver =
517 <RingMenuItem_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
518 ::unity::il2cpp_call!((::unity::module_base()+0x1d5f170usize)as*mut u8,();
519(RingMenuItem_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
520 }
521 }
522 #[doc = "`Invoke(crate::app::ringdata::RingData, i32, i32, i32, crate::app::basicmenuselect::BasicMenuSelect)` overload"]
523 fn invoke(
524 self,
525 ring_data: impl ::core::convert::Into<crate::app::ringdata::RingData>,
526 base_ring_count: impl ::core::convert::Into<i32>,
527 piece_of_bonds_count: impl ::core::convert::Into<i32>,
528 god_unit_index: impl ::core::convert::Into<i32>,
529 menu_select: impl ::core::convert::Into<crate::app::basicmenuselect::BasicMenuSelect>,
530 ) -> () {
531 unsafe {
532 let __receiver =
533 <RingMenuItem_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
534 {
535 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
536 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
537 panic!(
538 "unity: virtual slot {}
539 out of range (vtable len {}
540) on the runtime class behind {}
541 (method `{}
542`)",
543 13usize,
544 __vt.len(),
545 <RingMenuItem_DecideEventHandler as ::unity::ClassIdentity>::NAME,
546 "Invoke",
547 )
548 });
549 let __inner: extern "C" fn(
550 RingMenuItem_DecideEventHandler,
551 crate::app::ringdata::RingData,
552 i32,
553 i32,
554 i32,
555 crate::app::basicmenuselect::BasicMenuSelect,
556 ::unity::OptionalMethod,
557 ) -> () = ::core::mem::transmute(__vi.method_ptr);
558 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
559 __inner(
560 __receiver,
561 ::core::convert::Into::into(ring_data),
562 ::core::convert::Into::into(base_ring_count),
563 ::core::convert::Into::into(piece_of_bonds_count),
564 ::core::convert::Into::into(god_unit_index),
565 ::core::convert::Into::into(menu_select),
566 __mi,
567 )
568 }
569 }
570 }
571}
572
573#[cfg(feature = "app-ringmenuitem")]
574impl<__T: IRingMenuItem_DecideEventHandler> IRingMenuItem_DecideEventHandlerMethods for __T {}
575
576#[cfg(feature = "app-ringmenuitem")]
577impl RingMenuItem_DecideEventHandler {
578 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
579 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
580 }
581
582 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
584 }
585}
586
587#[cfg(feature = "app-ringmenuitem")]
588impl RingMenuItem_DecideEventHandler {
589 #[doc = "Direct (non-virtual) call to `RingMenuItem_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
590 pub unsafe fn invoke(
591 this: impl ::core::convert::Into<::unity::IlInstance>,
592 ring_data: crate::app::ringdata::RingData,
593 base_ring_count: i32,
594 piece_of_bonds_count: i32,
595 god_unit_index: i32,
596 menu_select: crate::app::basicmenuselect::BasicMenuSelect,
597 ) -> () {
598 let __mi = Self::invoke_method_info();
599 let __inner: extern "C" fn(
600 ::unity::IlInstance,
601 crate::app::ringdata::RingData,
602 i32,
603 i32,
604 i32,
605 crate::app::basicmenuselect::BasicMenuSelect,
606 ::unity::OptionalMethod,
607 ) -> () = ::core::mem::transmute(__mi.method_ptr);
608 __inner(
609 this.into(),
610 ring_data,
611 base_ring_count,
612 piece_of_bonds_count,
613 god_unit_index,
614 menu_select,
615 ::core::option::Option::None,
616 )
617 }
618}
619
620#[cfg(feature = "app-ringmenuitem")]
621impl RingMenuItem_DecideEventHandler {
622 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
623 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
624 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
625 panic!(
626 "{}
627::{}
628 failed to instantiate",
629 ::core::stringify!(RingMenuItem_DecideEventHandler),
630 ::core::stringify!(new),
631 )
632 });
633 <Self as IRingMenuItem_DecideEventHandlerMethods>::ctor(this, object, method);
634 this
635 }
636}
637
638#[cfg(feature = "app-ringmenuitem")]
639pub trait IRingMenuItem_SelectEventHandlerMethods: IRingMenuItem_SelectEventHandler {
640 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
641 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
642 unsafe {
643 let __receiver =
644 <RingMenuItem_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
645 ::unity::il2cpp_call!((::unity::module_base()+0x1d5f640usize)as*mut u8,();
646(RingMenuItem_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
647 }
648 }
649 #[doc = "`Invoke(crate::app::ringdata::RingData)` overload"]
650 fn invoke(self, ring_data: impl ::core::convert::Into<crate::app::ringdata::RingData>) -> () {
651 unsafe {
652 let __receiver =
653 <RingMenuItem_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
654 {
655 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
656 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
657 panic!(
658 "unity: virtual slot {}
659 out of range (vtable len {}
660) on the runtime class behind {}
661 (method `{}
662`)",
663 13usize,
664 __vt.len(),
665 <RingMenuItem_SelectEventHandler as ::unity::ClassIdentity>::NAME,
666 "Invoke",
667 )
668 });
669 let __inner: extern "C" fn(RingMenuItem_SelectEventHandler, crate::app::ringdata::RingData, ::unity::OptionalMethod) -> () =
670 ::core::mem::transmute(__vi.method_ptr);
671 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
672 __inner(__receiver, ::core::convert::Into::into(ring_data), __mi)
673 }
674 }
675 }
676}
677
678#[cfg(feature = "app-ringmenuitem")]
679impl<__T: IRingMenuItem_SelectEventHandler> IRingMenuItem_SelectEventHandlerMethods for __T {}
680
681#[cfg(feature = "app-ringmenuitem")]
682impl RingMenuItem_SelectEventHandler {
683 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
685 }
686
687 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
688 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
689 }
690}
691
692#[cfg(feature = "app-ringmenuitem")]
693impl RingMenuItem_SelectEventHandler {
694 #[doc = "Direct (non-virtual) call to `RingMenuItem_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
695 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, ring_data: crate::app::ringdata::RingData) -> () {
696 let __mi = Self::invoke_method_info();
697 let __inner: extern "C" fn(::unity::IlInstance, crate::app::ringdata::RingData, ::unity::OptionalMethod) -> () =
698 ::core::mem::transmute(__mi.method_ptr);
699 __inner(this.into(), ring_data, ::core::option::Option::None)
700 }
701}
702
703#[cfg(feature = "app-ringmenuitem")]
704impl RingMenuItem_SelectEventHandler {
705 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
706 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
707 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
708 panic!(
709 "{}
710::{}
711 failed to instantiate",
712 ::core::stringify!(RingMenuItem_SelectEventHandler),
713 ::core::stringify!(new),
714 )
715 });
716 <Self as IRingMenuItem_SelectEventHandlerMethods>::ctor(this, object, method);
717 this
718 }
719}
720
721#[cfg(feature = "app-ringmenuitem")]
722#[doc(hidden)]
723pub mod prelude {
724 pub use super::{
725 IRingMenuItem, IRingMenuItemMethods, IRingMenuItem_DecideEventHandler, IRingMenuItem_DecideEventHandlerMethods,
726 IRingMenuItem_SelectEventHandler, IRingMenuItem_SelectEventHandlerMethods, RingMenuItem, RingMenuItem_DecideEventHandler,
727 RingMenuItem_SelectEventHandler,
728 };
729 #[cfg(feature = "app-basicmenuitem")]
730 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
731 #[cfg(feature = "system-delegate")]
732 pub use crate::system::delegate::IDelegateMethods;
733 #[cfg(feature = "system-multicastdelegate")]
734 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
735 #[cfg(feature = "system-object")]
736 pub use crate::system::object::IObjectMethods;
737 pub use crate::{
738 app::basicmenuitem::IBasicMenuItem,
739 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
740 };
741}