1#[cfg(feature = "app-godunitselectmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 procinst::{IProcInst, ProcInst},
12 },
13 system::{
14 delegate::{Delegate, IDelegate},
15 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
16 object::{IObject, Object},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/godunitselectmenu/GodUnitSelectMenu_DecideEventHandler.md"))]
21 #[::unity::class(namespace = "App", name = "GodUnitSelectMenu.DecideEventHandler")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct GodUnitSelectMenu_DecideEventHandler {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/godunitselectmenu/GodUnitSelectMenu.md"))]
26 #[::unity::class(namespace = "App", name = "GodUnitSelectMenu")]
27 #[parent(crate::app::basicmenu::BasicMenu)]
28 pub struct GodUnitSelectMenu {}
29
30 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/godunitselectmenu/GodUnitSelectMenu_SelectEventHandler.md"))]
31 #[::unity::class(namespace = "App", name = "GodUnitSelectMenu.SelectEventHandler")]
32 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
33 pub struct GodUnitSelectMenu_SelectEventHandler {}
34}
35
36#[cfg(feature = "app-godunitselectmenu-types")]
37pub use __types::*;
38
39#[cfg(feature = "app-godunitselectmenu")]
40pub trait IGodUnitSelectMenu_DecideEventHandlerMethods: IGodUnitSelectMenu_DecideEventHandler {
41 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
42 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
43 unsafe {
44 let __receiver = <GodUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
45 <Self as ::unity::SystemObject>::as_instance(self),
46 );
47 ::unity::il2cpp_call!((::unity::module_base()+0x1cdaba0usize)as*mut u8,();
48(GodUnitSelectMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
49 }
50 }
51 #[doc = "`Invoke(crate::app::basicmenu::BasicMenu_Result, crate::app::godunit::GodUnit, crate::app::ringcleaningsequence::RingCleaningSequence_GodType)` overload"]
52 fn invoke(
53 self,
54 result: impl ::core::convert::Into<crate::app::basicmenu::BasicMenu_Result>,
55 god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
56 r#type: impl ::core::convert::Into<crate::app::ringcleaningsequence::RingCleaningSequence_GodType>,
57 ) -> () {
58 unsafe {
59 let __receiver = <GodUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
60 <Self as ::unity::SystemObject>::as_instance(self),
61 );
62 {
63 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
65 panic!(
66 "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71 13usize,
72 __vt.len(),
73 <GodUnitSelectMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
74 "Invoke",
75 )
76 });
77 let __inner: extern "C" fn(
78 GodUnitSelectMenu_DecideEventHandler,
79 crate::app::basicmenu::BasicMenu_Result,
80 crate::app::godunit::GodUnit,
81 crate::app::ringcleaningsequence::RingCleaningSequence_GodType,
82 ::unity::OptionalMethod,
83 ) -> () = ::core::mem::transmute(__vi.method_ptr);
84 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85 __inner(
86 __receiver,
87 ::core::convert::Into::into(result),
88 ::core::convert::Into::into(god),
89 ::core::convert::Into::into(r#type),
90 __mi,
91 )
92 }
93 }
94 }
95}
96
97#[cfg(feature = "app-godunitselectmenu")]
98impl<__T: IGodUnitSelectMenu_DecideEventHandler> IGodUnitSelectMenu_DecideEventHandlerMethods for __T {}
99
100#[cfg(feature = "app-godunitselectmenu")]
101impl GodUnitSelectMenu_DecideEventHandler {
102 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
104 }
105
106 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
108 }
109}
110
111#[cfg(feature = "app-godunitselectmenu")]
112impl GodUnitSelectMenu_DecideEventHandler {
113 #[doc = "Direct (non-virtual) call to `GodUnitSelectMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
114 pub unsafe fn invoke(
115 this: impl ::core::convert::Into<::unity::IlInstance>,
116 result: crate::app::basicmenu::BasicMenu_Result,
117 god: crate::app::godunit::GodUnit,
118 r#type: crate::app::ringcleaningsequence::RingCleaningSequence_GodType,
119 ) -> () {
120 let __mi = Self::invoke_method_info();
121 let __inner: extern "C" fn(
122 ::unity::IlInstance,
123 crate::app::basicmenu::BasicMenu_Result,
124 crate::app::godunit::GodUnit,
125 crate::app::ringcleaningsequence::RingCleaningSequence_GodType,
126 ::unity::OptionalMethod,
127 ) -> () = ::core::mem::transmute(__mi.method_ptr);
128 __inner(this.into(), result, god, r#type, ::core::option::Option::None)
129 }
130}
131
132#[cfg(feature = "app-godunitselectmenu")]
133impl GodUnitSelectMenu_DecideEventHandler {
134 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
135 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
136 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
137 panic!(
138 "{}
139::{}
140 failed to instantiate",
141 ::core::stringify!(GodUnitSelectMenu_DecideEventHandler),
142 ::core::stringify!(new),
143 )
144 });
145 <Self as IGodUnitSelectMenu_DecideEventHandlerMethods>::ctor(this, object, method);
146 this
147 }
148}
149
150#[cfg(feature = "app-godunitselectmenu")]
151impl GodUnitSelectMenu {
152 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::godunitselectmenu::GodUnitSelectMenu_SelectEventHandler, crate::app::godunitselectmenu::GodUnitSelectMenu_DecideEventHandler, crate::app::godunit::GodUnit)` overload"]
153 pub fn create_bind(
154 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
155 list_root_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
156 select_event_handler: impl ::core::convert::Into<crate::app::godunitselectmenu::GodUnitSelectMenu_SelectEventHandler>,
157 decide_event_handler: impl ::core::convert::Into<crate::app::godunitselectmenu::GodUnitSelectMenu_DecideEventHandler>,
158 selected_god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
159 ) -> bool {
160 unsafe {
161 ::unity::il2cpp_call!((::unity::module_base()+0x233d8f0usize)as*mut u8,bool;
162(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(list_root_object),(crate::app::godunitselectmenu::GodUnitSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::godunitselectmenu::GodUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::godunit::GodUnit)::core::convert::Into::into(selected_god))
163 }
164 }
165}
166
167#[cfg(feature = "app-godunitselectmenu")]
168pub trait IGodUnitSelectMenuMethods: IGodUnitSelectMenu {
169 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::godunitselectmenucontent::GodUnitSelectMenuContent, crate::unity_engine::gameobject::GameObject)` overload"]
170 fn ctor(
171 self,
172 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
173 menu_content: impl ::core::convert::Into<crate::app::godunitselectmenucontent::GodUnitSelectMenuContent>,
174 menu_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
175 ) -> () {
176 unsafe {
177 let __receiver = <GodUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x2347550usize)as*mut u8,();
179(GodUnitSelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::godunitselectmenucontent::GodUnitSelectMenuContent)::core::convert::Into::into(menu_content),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(menu_object))
180 }
181 }
182}
183
184#[cfg(feature = "app-godunitselectmenu")]
185impl<__T: IGodUnitSelectMenu> IGodUnitSelectMenuMethods for __T {}
186
187#[cfg(feature = "app-godunitselectmenu")]
188impl GodUnitSelectMenu {
189 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
191 }
192
193 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
195 }
196}
197
198#[cfg(feature = "app-godunitselectmenu")]
199impl GodUnitSelectMenu {
200 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::godunitselectmenucontent::GodUnitSelectMenuContent, crate::unity_engine::gameobject::GameObject)` — overload selector"]
201 pub fn new(
202 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
203 menu_content: crate::app::godunitselectmenucontent::GodUnitSelectMenuContent,
204 menu_object: crate::unity_engine::gameobject::GameObject,
205 ) -> Self {
206 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
207 panic!(
208 "{}
209::{}
210 failed to instantiate",
211 ::core::stringify!(GodUnitSelectMenu),
212 ::core::stringify!(new),
213 )
214 });
215 <Self as IGodUnitSelectMenuMethods>::ctor(this, menu_item_list, menu_content, menu_object);
216 this
217 }
218}
219
220#[cfg(feature = "app-godunitselectmenu")]
221pub trait IGodUnitSelectMenu_SelectEventHandlerMethods: IGodUnitSelectMenu_SelectEventHandler {
222 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
223 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
224 unsafe {
225 let __receiver = <GodUnitSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
226 <Self as ::unity::SystemObject>::as_instance(self),
227 );
228 ::unity::il2cpp_call!((::unity::module_base()+0x1cdaf20usize)as*mut u8,();
229(GodUnitSelectMenu_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
230 }
231 }
232 #[doc = "`Invoke(crate::app::godunit::GodUnit, crate::app::ringcleaningsequence::RingCleaningSequence_GodType)` overload"]
233 fn invoke(
234 self,
235 god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
236 optional_type: impl ::core::convert::Into<crate::app::ringcleaningsequence::RingCleaningSequence_GodType>,
237 ) -> () {
238 unsafe {
239 let __receiver = <GodUnitSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
240 <Self as ::unity::SystemObject>::as_instance(self),
241 );
242 {
243 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
244 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
245 panic!(
246 "unity: virtual slot {}
247 out of range (vtable len {}
248) on the runtime class behind {}
249 (method `{}
250`)",
251 13usize,
252 __vt.len(),
253 <GodUnitSelectMenu_SelectEventHandler as ::unity::ClassIdentity>::NAME,
254 "Invoke",
255 )
256 });
257 let __inner: extern "C" fn(
258 GodUnitSelectMenu_SelectEventHandler,
259 crate::app::godunit::GodUnit,
260 crate::app::ringcleaningsequence::RingCleaningSequence_GodType,
261 ::unity::OptionalMethod,
262 ) -> () = ::core::mem::transmute(__vi.method_ptr);
263 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
264 __inner(
265 __receiver,
266 ::core::convert::Into::into(god),
267 ::core::convert::Into::into(optional_type),
268 __mi,
269 )
270 }
271 }
272 }
273}
274
275#[cfg(feature = "app-godunitselectmenu")]
276impl<__T: IGodUnitSelectMenu_SelectEventHandler> IGodUnitSelectMenu_SelectEventHandlerMethods for __T {}
277
278#[cfg(feature = "app-godunitselectmenu")]
279impl GodUnitSelectMenu_SelectEventHandler {
280 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
282 }
283
284 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
286 }
287}
288
289#[cfg(feature = "app-godunitselectmenu")]
290impl GodUnitSelectMenu_SelectEventHandler {
291 #[doc = "Direct (non-virtual) call to `GodUnitSelectMenu_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
292 pub unsafe fn invoke(
293 this: impl ::core::convert::Into<::unity::IlInstance>,
294 god: crate::app::godunit::GodUnit,
295 optional_type: crate::app::ringcleaningsequence::RingCleaningSequence_GodType,
296 ) -> () {
297 let __mi = Self::invoke_method_info();
298 let __inner: extern "C" fn(
299 ::unity::IlInstance,
300 crate::app::godunit::GodUnit,
301 crate::app::ringcleaningsequence::RingCleaningSequence_GodType,
302 ::unity::OptionalMethod,
303 ) -> () = ::core::mem::transmute(__mi.method_ptr);
304 __inner(this.into(), god, optional_type, ::core::option::Option::None)
305 }
306}
307
308#[cfg(feature = "app-godunitselectmenu")]
309impl GodUnitSelectMenu_SelectEventHandler {
310 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
311 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
312 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
313 panic!(
314 "{}
315::{}
316 failed to instantiate",
317 ::core::stringify!(GodUnitSelectMenu_SelectEventHandler),
318 ::core::stringify!(new),
319 )
320 });
321 <Self as IGodUnitSelectMenu_SelectEventHandlerMethods>::ctor(this, object, method);
322 this
323 }
324}
325
326#[cfg(feature = "app-godunitselectmenu")]
327#[doc(hidden)]
328pub mod prelude {
329 pub use super::{
330 GodUnitSelectMenu, GodUnitSelectMenu_DecideEventHandler, GodUnitSelectMenu_SelectEventHandler, IGodUnitSelectMenu, IGodUnitSelectMenuMethods,
331 IGodUnitSelectMenu_DecideEventHandler, IGodUnitSelectMenu_DecideEventHandlerMethods, IGodUnitSelectMenu_SelectEventHandler,
332 IGodUnitSelectMenu_SelectEventHandlerMethods,
333 };
334 #[cfg(feature = "app-basicmenu")]
335 pub use crate::app::basicmenu::IBasicMenuMethods;
336 #[cfg(feature = "app-procinst")]
337 pub use crate::app::procinst::IProcInstMethods;
338 #[cfg(feature = "system-delegate")]
339 pub use crate::system::delegate::IDelegateMethods;
340 #[cfg(feature = "system-multicastdelegate")]
341 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
342 #[cfg(feature = "system-object")]
343 pub use crate::system::object::IObjectMethods;
344 pub use crate::{
345 app::{basicmenu::IBasicMenu, procinst::IProcInst},
346 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
347 };
348}