1#[cfg(feature = "app-fortunetellingunitselectmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 basicmenuitem::{BasicMenuItem, IBasicMenuItem},
12 procinst::{IProcInst, ProcInst},
13 },
14 system::{
15 delegate::{Delegate, IDelegate},
16 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
17 object::{IObject, Object},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fortunetellingunitselectmenu/FortuneTellingUnitSelectMenu_DecideEventHandler.md"))]
22 #[::unity::class(namespace = "App", name = "FortuneTellingUnitSelectMenu.DecideEventHandler")]
23 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
24 pub struct FortuneTellingUnitSelectMenu_DecideEventHandler {}
25
26 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fortunetellingunitselectmenu/FortuneTellingUnitSelectMenu.md"))]
27 #[::unity::class(namespace = "App", name = "FortuneTellingUnitSelectMenu")]
28 #[parent(crate::app::basicmenu::BasicMenu)]
29 pub struct FortuneTellingUnitSelectMenu {
30 #[static_field]
31 #[rename(name = "ForceMask")]
32 pub force_mask: u32,
33 }
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fortunetellingunitselectmenu/FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem.md"))]
36 #[::unity::class(namespace = "App", name = "FortuneTellingUnitSelectMenu.FortuneTellingUnitSelectMenuItem")]
37 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
38 pub struct FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem {
39 #[offset(104)]
40 #[rename(name = "m_Unit")]
41 pub m_unit: crate::app::unit::Unit,
42 #[offset(112)]
43 #[rename(name = "m_bSelect")]
44 pub m_b_select: bool,
45 #[offset(120)]
46 #[rename(name = "m_DecideEventHandler")]
47 pub m_decide_event_handler: crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler,
48 }
49}
50
51#[cfg(feature = "app-fortunetellingunitselectmenu-types")]
52pub use __types::*;
53
54#[cfg(feature = "app-fortunetellingunitselectmenu")]
55pub trait IFortuneTellingUnitSelectMenu_DecideEventHandlerMethods: IFortuneTellingUnitSelectMenu_DecideEventHandler {
56 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
57 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
58 unsafe {
59 let __receiver = <FortuneTellingUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
60 <Self as ::unity::SystemObject>::as_instance(self),
61 );
62 ::unity::il2cpp_call!((::unity::module_base()+0x1e64190usize)as*mut u8,();
63(FortuneTellingUnitSelectMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
64 }
65 }
66 #[doc = "`Invoke(crate::app::unit::Unit)` overload"]
67 fn invoke(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
68 unsafe {
69 let __receiver = <FortuneTellingUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
70 <Self as ::unity::SystemObject>::as_instance(self),
71 );
72 {
73 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
74 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
75 panic!(
76 "unity: virtual slot {}
77 out of range (vtable len {}
78) on the runtime class behind {}
79 (method `{}
80`)",
81 13usize,
82 __vt.len(),
83 <FortuneTellingUnitSelectMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
84 "Invoke",
85 )
86 });
87 let __inner: extern "C" fn(FortuneTellingUnitSelectMenu_DecideEventHandler, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
88 ::core::mem::transmute(__vi.method_ptr);
89 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
90 __inner(__receiver, ::core::convert::Into::into(unit), __mi)
91 }
92 }
93 }
94}
95
96#[cfg(feature = "app-fortunetellingunitselectmenu")]
97impl<__T: IFortuneTellingUnitSelectMenu_DecideEventHandler> IFortuneTellingUnitSelectMenu_DecideEventHandlerMethods for __T {}
98
99#[cfg(feature = "app-fortunetellingunitselectmenu")]
100impl FortuneTellingUnitSelectMenu_DecideEventHandler {
101 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103 }
104
105 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107 }
108}
109
110#[cfg(feature = "app-fortunetellingunitselectmenu")]
111impl FortuneTellingUnitSelectMenu_DecideEventHandler {
112 #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
113 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unit::Unit) -> () {
114 let __mi = Self::invoke_method_info();
115 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
116 ::core::mem::transmute(__mi.method_ptr);
117 __inner(this.into(), unit, ::core::option::Option::None)
118 }
119}
120
121#[cfg(feature = "app-fortunetellingunitselectmenu")]
122impl FortuneTellingUnitSelectMenu_DecideEventHandler {
123 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
124 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
125 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
126 panic!(
127 "{}
128::{}
129 failed to instantiate",
130 ::core::stringify!(FortuneTellingUnitSelectMenu_DecideEventHandler),
131 ::core::stringify!(new),
132 )
133 });
134 <Self as IFortuneTellingUnitSelectMenu_DecideEventHandlerMethods>::ctor(this, object, method);
135 this
136 }
137}
138
139#[cfg(feature = "app-fortunetellingunitselectmenu")]
140impl FortuneTellingUnitSelectMenu {
141 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler, crate::app::unit::Unit)` overload"]
142 pub fn create_bind(
143 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
144 decide_event_handler: impl ::core::convert::Into<crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler>,
145 select_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
146 ) -> () {
147 unsafe {
148 ::unity::il2cpp_call!((::unity::module_base()+0x261a470usize)as*mut u8,();
149(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::unit::Unit)::core::convert::Into::into(select_unit))
150 }
151 }
152
153 #[doc = "`.cctor()` overload"]
154 pub fn cctor() -> () {
155 unsafe {
156 ::unity::il2cpp_call!((::unity::module_base()+0x261aab0usize)as*mut u8,();
157 )
158 }
159 }
160}
161
162#[cfg(feature = "app-fortunetellingunitselectmenu")]
163pub trait IFortuneTellingUnitSelectMenuMethods: IFortuneTellingUnitSelectMenu {
164 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent)` overload"]
165 fn ctor(
166 self,
167 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
168 menu_content: impl ::core::convert::Into<crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent>,
169 ) -> () {
170 unsafe {
171 let __receiver =
172 <FortuneTellingUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x261a9b0usize)as*mut u8,();
174(FortuneTellingUnitSelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent)::core::convert::Into::into(menu_content))
175 }
176 }
177 #[doc = "`GetName()` overload"]
178 fn get_name(self) -> ::unity::Il2CppString {
179 unsafe {
180 let __receiver =
181 <FortuneTellingUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 {
183 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
184 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
185 panic!(
186 "unity: virtual slot {}
187 out of range (vtable len {}
188) on the runtime class behind {}
189 (method `{}
190`)",
191 30usize,
192 __vt.len(),
193 <FortuneTellingUnitSelectMenu as ::unity::ClassIdentity>::NAME,
194 "GetName",
195 )
196 });
197 let __inner: extern "C" fn(FortuneTellingUnitSelectMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
198 ::core::mem::transmute(__vi.method_ptr);
199 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
200 __inner(__receiver, __mi)
201 }
202 }
203 }
204 #[doc = "`AfterBuild()` overload"]
205 fn after_build(self) -> () {
206 unsafe {
207 let __receiver =
208 <FortuneTellingUnitSelectMenu 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(25usize).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 25usize,
219 __vt.len(),
220 <FortuneTellingUnitSelectMenu as ::unity::ClassIdentity>::NAME,
221 "AfterBuild",
222 )
223 });
224 let __inner: extern "C" fn(FortuneTellingUnitSelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
225 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
226 __inner(__receiver, __mi)
227 }
228 }
229 }
230 #[doc = "`GetEndUnitNum()` overload"]
231 fn get_end_unit_num(self) -> i32 {
232 unsafe {
233 let __receiver =
234 <FortuneTellingUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x261aa20usize)as*mut u8,i32;
236(FortuneTellingUnitSelectMenu)__receiver)
237 }
238 }
239}
240
241#[cfg(feature = "app-fortunetellingunitselectmenu")]
242impl<__T: IFortuneTellingUnitSelectMenu> IFortuneTellingUnitSelectMenuMethods for __T {}
243
244#[cfg(feature = "app-fortunetellingunitselectmenu")]
245impl FortuneTellingUnitSelectMenu {
246 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
248 }
249
250 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
252 }
253
254 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
256 }
257
258 pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
260 }
261
262 pub fn get_end_unit_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
264 }
265
266 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
268 }
269}
270
271#[cfg(feature = "app-fortunetellingunitselectmenu")]
272impl FortuneTellingUnitSelectMenu {
273 #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
274 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
275 let __mi = Self::get_name_method_info();
276 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
277 __inner(this.into(), ::core::option::Option::None)
278 }
279
280 #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenu`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
281 pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
282 let __mi = Self::after_build_method_info();
283 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
284 __inner(this.into(), ::core::option::Option::None)
285 }
286}
287
288#[cfg(feature = "app-fortunetellingunitselectmenu")]
289impl FortuneTellingUnitSelectMenu {
290 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent)` — overload selector"]
291 pub fn new(
292 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
293 menu_content: crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent,
294 ) -> Self {
295 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
296 panic!(
297 "{}
298::{}
299 failed to instantiate",
300 ::core::stringify!(FortuneTellingUnitSelectMenu),
301 ::core::stringify!(new),
302 )
303 });
304 <Self as IFortuneTellingUnitSelectMenuMethods>::ctor(this, menu_item_list, menu_content);
305 this
306 }
307}
308
309#[cfg(feature = "app-fortunetellingunitselectmenu")]
310pub trait IFortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItemMethods:
311 IFortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem
312{
313 #[doc = "`.ctor(crate::app::unit::Unit, crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler, crate::app::unit::Unit)` overload"]
314 fn ctor(
315 self,
316 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
317 decide_event_handler: impl ::core::convert::Into<crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler>,
318 select_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
319 ) -> () {
320 unsafe {
321 let __receiver = <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
322 <Self as ::unity::SystemObject>::as_instance(self),
323 );
324 ::unity::il2cpp_call!((::unity::module_base()+0x1e64550usize)as*mut u8,();
325(FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::unit::Unit)::core::convert::Into::into(select_unit))
326 }
327 }
328 #[doc = "`GetName()` overload"]
329 fn get_name(self) -> ::unity::Il2CppString {
330 unsafe {
331 let __receiver = <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
332 <Self as ::unity::SystemObject>::as_instance(self),
333 );
334 {
335 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
336 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
337 panic!(
338 "unity: virtual slot {}
339 out of range (vtable len {}
340) on the runtime class behind {}
341 (method `{}
342`)",
343 4usize,
344 __vt.len(),
345 <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
346 "GetName",
347 )
348 });
349 let __inner: extern "C" fn(
350 FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem,
351 ::unity::OptionalMethod,
352 ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
353 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
354 __inner(__receiver, __mi)
355 }
356 }
357 }
358 #[doc = "`BuildAttribute()` overload"]
359 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
360 unsafe {
361 let __receiver = <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
362 <Self as ::unity::SystemObject>::as_instance(self),
363 );
364 {
365 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
366 let __vi = *__vt.get(8usize).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 8usize,
374 __vt.len(),
375 <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
376 "BuildAttribute",
377 )
378 });
379 let __inner: extern "C" fn(
380 FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem,
381 ::unity::OptionalMethod,
382 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
383 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
384 __inner(__receiver, __mi)
385 }
386 }
387 }
388 #[doc = "`ACall()` overload"]
389 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
390 unsafe {
391 let __receiver = <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
392 <Self as ::unity::SystemObject>::as_instance(self),
393 );
394 {
395 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
396 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
397 panic!(
398 "unity: virtual slot {}
399 out of range (vtable len {}
400) on the runtime class behind {}
401 (method `{}
402`)",
403 18usize,
404 __vt.len(),
405 <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
406 "ACall",
407 )
408 });
409 let __inner: extern "C" fn(
410 FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem,
411 ::unity::OptionalMethod,
412 ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
413 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
414 __inner(__receiver, __mi)
415 }
416 }
417 }
418 #[doc = "`BCall()` overload"]
419 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
420 unsafe {
421 let __receiver = <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
422 <Self as ::unity::SystemObject>::as_instance(self),
423 );
424 {
425 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
426 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
427 panic!(
428 "unity: virtual slot {}
429 out of range (vtable len {}
430) on the runtime class behind {}
431 (method `{}
432`)",
433 19usize,
434 __vt.len(),
435 <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
436 "BCall",
437 )
438 });
439 let __inner: extern "C" fn(
440 FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem,
441 ::unity::OptionalMethod,
442 ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
443 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
444 __inner(__receiver, __mi)
445 }
446 }
447 }
448 #[doc = "`GetUnit()` overload"]
449 fn get_unit(self) -> crate::app::unit::Unit {
450 unsafe {
451 let __receiver = <FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
452 <Self as ::unity::SystemObject>::as_instance(self),
453 );
454 ::unity::il2cpp_call!((::unity::module_base()+0x1e64670usize)as*mut u8,crate::app::unit::Unit;
455(FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem)__receiver)
456 }
457 }
458}
459
460#[cfg(feature = "app-fortunetellingunitselectmenu")]
461impl<__T: IFortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem> IFortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItemMethods
462 for __T
463{
464}
465
466#[cfg(feature = "app-fortunetellingunitselectmenu")]
467impl FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem {
468 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
469 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
470 }
471
472 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
473 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
474 }
475
476 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
478 }
479
480 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
482 }
483
484 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
486 }
487
488 pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
490 }
491}
492
493#[cfg(feature = "app-fortunetellingunitselectmenu")]
494impl FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem {
495 #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
496 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
497 let __mi = Self::get_name_method_info();
498 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
499 __inner(this.into(), ::core::option::Option::None)
500 }
501
502 #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
503 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
504 let __mi = Self::build_attribute_method_info();
505 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
506 ::core::mem::transmute(__mi.method_ptr);
507 __inner(this.into(), ::core::option::Option::None)
508 }
509
510 #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
511 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
512 let __mi = Self::a_call_method_info();
513 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
514 ::core::mem::transmute(__mi.method_ptr);
515 __inner(this.into(), ::core::option::Option::None)
516 }
517
518 #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
519 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
520 let __mi = Self::b_call_method_info();
521 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
522 ::core::mem::transmute(__mi.method_ptr);
523 __inner(this.into(), ::core::option::Option::None)
524 }
525}
526
527#[cfg(feature = "app-fortunetellingunitselectmenu")]
528impl FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem {
529 #[doc = "`.ctor(crate::app::unit::Unit, crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler, crate::app::unit::Unit)` — overload selector"]
530 pub fn new(
531 unit: crate::app::unit::Unit,
532 decide_event_handler: crate::app::fortunetellingunitselectmenu::FortuneTellingUnitSelectMenu_DecideEventHandler,
533 select_unit: crate::app::unit::Unit,
534 ) -> Self {
535 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
536 panic!(
537 "{}
538::{}
539 failed to instantiate",
540 ::core::stringify!(FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem),
541 ::core::stringify!(new),
542 )
543 });
544 <Self as IFortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItemMethods>::ctor(this, unit, decide_event_handler, select_unit);
545 this
546 }
547}
548
549#[cfg(feature = "app-fortunetellingunitselectmenu")]
550#[doc(hidden)]
551pub mod prelude {
552 pub use super::{
553 FortuneTellingUnitSelectMenu, FortuneTellingUnitSelectMenu_DecideEventHandler, FortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem,
554 IFortuneTellingUnitSelectMenu, IFortuneTellingUnitSelectMenuMethods, IFortuneTellingUnitSelectMenu_DecideEventHandler,
555 IFortuneTellingUnitSelectMenu_DecideEventHandlerMethods, IFortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItem,
556 IFortuneTellingUnitSelectMenu_FortuneTellingUnitSelectMenuItemMethods,
557 };
558 #[cfg(feature = "app-basicmenu")]
559 pub use crate::app::basicmenu::IBasicMenuMethods;
560 #[cfg(feature = "app-basicmenuitem")]
561 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
562 #[cfg(feature = "app-procinst")]
563 pub use crate::app::procinst::IProcInstMethods;
564 #[cfg(feature = "system-delegate")]
565 pub use crate::system::delegate::IDelegateMethods;
566 #[cfg(feature = "system-multicastdelegate")]
567 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
568 #[cfg(feature = "system-object")]
569 pub use crate::system::object::IObjectMethods;
570 pub use crate::{
571 app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
572 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
573 };
574}