1#[cfg(feature = "app-synthesisringmenutop-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/synthesisringmenutop/SynthesisRingMenuTop_Result.md"))]
15 #[::unity::class(namespace = "App", name = "SynthesisRingMenuTop.Result")]
16 #[parent(crate::system::object::Object)]
17 pub struct SynthesisRingMenuTop_Result {
18 #[offset(16)]
19 #[rename(name = "m_Rnid")]
20 pub m_rnid: ::unity::Il2CppString,
21 #[offset(24)]
22 #[rename(name = "m_BaseRingCount")]
23 pub m_base_ring_count: i32,
24 #[offset(28)]
25 #[rename(name = "m_PieceOfBondsCount")]
26 pub m_piece_of_bonds_count: i32,
27 #[offset(32)]
28 #[rename(name = "m_GodUnitIndex")]
29 pub m_god_unit_index: i32,
30 #[offset(40)]
31 #[rename(name = "m_MenuSelect")]
32 pub m_menu_select: crate::app::basicmenuselect::BasicMenuSelect,
33 }
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/synthesisringmenutop/SynthesisRingMenuTop.md"))]
36 #[::unity::class(namespace = "App", name = "SynthesisRingMenuTop")]
37 #[parent(crate::system::object::Object)]
38 pub struct SynthesisRingMenuTop {
39 #[offset(16)]
40 #[rename(name = "m_SynthesisRingRoot")]
41 pub m_synthesis_ring_root: crate::app::synthesisringroot::SynthesisRingRoot,
42 #[offset(24)]
43 #[rename(name = "m_SynthesisRingBaseRingMenu")]
44 pub m_synthesis_ring_base_ring_menu: crate::app::synthesisringbaseringmenu::SynthesisRingBaseRingMenu,
45 #[offset(32)]
46 #[rename(name = "m_DecideEventHandler")]
47 pub m_decide_event_handler: crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler,
48 #[offset(40)]
49 #[rename(name = "m_RingData")]
50 pub m_ring_data: crate::app::ringdata::RingData,
51 #[offset(48)]
52 #[rename(name = "m_CountBaseRing")]
53 pub m_count_base_ring: i32,
54 #[offset(52)]
55 #[rename(name = "m_CountPieceOfBonds")]
56 pub m_count_piece_of_bonds: i32,
57 #[offset(56)]
58 #[rename(name = "m_GodUnitIndex")]
59 pub m_god_unit_index: i32,
60 #[offset(64)]
61 #[rename(name = "m_MenuSelect")]
62 pub m_menu_select: crate::app::basicmenuselect::BasicMenuSelect,
63 }
64
65 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/synthesisringmenutop/SynthesisRingMenuTop_DecideEventHandler.md"))]
66 #[::unity::class(namespace = "App", name = "SynthesisRingMenuTop.DecideEventHandler")]
67 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
68 pub struct SynthesisRingMenuTop_DecideEventHandler {}
69}
70
71#[cfg(feature = "app-synthesisringmenutop-types")]
72pub use __types::*;
73
74#[cfg(feature = "app-synthesisringmenutop")]
75pub trait ISynthesisRingMenuTop_ResultMethods: ISynthesisRingMenuTop_Result {
76 #[doc = "`.ctor(::unity::Il2CppString, i32, i32, i32, crate::app::basicmenuselect::BasicMenuSelect)` overload"]
77 fn ctor(
78 self,
79 rnid: impl ::core::convert::Into<::unity::Il2CppString>,
80 base_ring_count: impl ::core::convert::Into<i32>,
81 piece_of_bonds_count: impl ::core::convert::Into<i32>,
82 god_unit_index: impl ::core::convert::Into<i32>,
83 menu_select: impl ::core::convert::Into<crate::app::basicmenuselect::BasicMenuSelect>,
84 ) -> () {
85 unsafe {
86 let __receiver =
87 <SynthesisRingMenuTop_Result as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x21f7da0usize)as*mut u8,();
89(SynthesisRingMenuTop_Result)__receiver,(::unity::Il2CppString)::core::convert::Into::into(rnid),(i32)::core::convert::Into::into(base_ring_count),(i32)::core::convert::Into::into(piece_of_bonds_count),(i32)::core::convert::Into::into(god_unit_index),(crate::app::basicmenuselect::BasicMenuSelect)::core::convert::Into::into(menu_select))
90 }
91 }
92}
93
94#[cfg(feature = "app-synthesisringmenutop")]
95impl<__T: ISynthesisRingMenuTop_Result> ISynthesisRingMenuTop_ResultMethods for __T {}
96
97#[cfg(feature = "app-synthesisringmenutop")]
98impl SynthesisRingMenuTop_Result {
99 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101 }
102}
103
104#[cfg(feature = "app-synthesisringmenutop")]
105impl SynthesisRingMenuTop_Result {
106 #[doc = "`.ctor(::unity::Il2CppString, i32, i32, i32, crate::app::basicmenuselect::BasicMenuSelect)` — overload selector"]
107 pub fn new(
108 rnid: ::unity::Il2CppString,
109 base_ring_count: i32,
110 piece_of_bonds_count: i32,
111 god_unit_index: i32,
112 menu_select: crate::app::basicmenuselect::BasicMenuSelect,
113 ) -> Self {
114 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
115 panic!(
116 "{}
117::{}
118 failed to instantiate",
119 ::core::stringify!(SynthesisRingMenuTop_Result),
120 ::core::stringify!(new),
121 )
122 });
123 <Self as ISynthesisRingMenuTop_ResultMethods>::ctor(this, rnid, base_ring_count, piece_of_bonds_count, god_unit_index, menu_select);
124 this
125 }
126}
127
128#[cfg(feature = "app-synthesisringmenutop")]
129impl SynthesisRingMenuTop {
130 #[doc = "`CreateBind(crate::app::procinst::ProcInst, i32, crate::app::basicmenuselect::BasicMenuSelect, crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler)` overload"]
131 pub fn create_bind(
132 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
133 initial_god_unit_index: impl ::core::convert::Into<i32>,
134 initial_menu_select: impl ::core::convert::Into<crate::app::basicmenuselect::BasicMenuSelect>,
135 decide_event_handler: impl ::core::convert::Into<crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler>,
136 ) -> crate::app::synthesisringmenutop::SynthesisRingMenuTop {
137 unsafe {
138 ::unity::il2cpp_call!((::unity::module_base()+0x20b4950usize)as*mut u8,crate::app::synthesisringmenutop::SynthesisRingMenuTop;
139(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(i32)::core::convert::Into::into(initial_god_unit_index),(crate::app::basicmenuselect::BasicMenuSelect)::core::convert::Into::into(initial_menu_select),(crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
140 }
141 }
142}
143
144#[cfg(feature = "app-synthesisringmenutop")]
145pub trait ISynthesisRingMenuTopMethods: ISynthesisRingMenuTop {
146 #[doc = "`Destroy()` overload"]
147 fn destroy(self) -> () {
148 unsafe {
149 let __receiver = <SynthesisRingMenuTop as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x20b4cf0usize)as*mut u8,();
151(SynthesisRingMenuTop)__receiver)
152 }
153 }
154 #[doc = "`.ctor(crate::app::procinst::ProcInst, i32, crate::app::basicmenuselect::BasicMenuSelect, crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler)` overload"]
155 fn ctor(
156 self,
157 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
158 initial_god_unit_index: impl ::core::convert::Into<i32>,
159 initial_menu_select: impl ::core::convert::Into<crate::app::basicmenuselect::BasicMenuSelect>,
160 decide_event_handler: impl ::core::convert::Into<crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler>,
161 ) -> () {
162 unsafe {
163 let __receiver = <SynthesisRingMenuTop as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x20b49e0usize)as*mut u8,();
165(SynthesisRingMenuTop)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(i32)::core::convert::Into::into(initial_god_unit_index),(crate::app::basicmenuselect::BasicMenuSelect)::core::convert::Into::into(initial_menu_select),(crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
166 }
167 }
168 #[doc = "`OnSelect(crate::app::ringdata::RingData)` overload"]
169 fn on_select(self, ring_data: impl ::core::convert::Into<crate::app::ringdata::RingData>) -> () {
170 unsafe {
171 let __receiver = <SynthesisRingMenuTop as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x20b5010usize)as*mut u8,();
173(SynthesisRingMenuTop)__receiver,(crate::app::ringdata::RingData)::core::convert::Into::into(ring_data))
174 }
175 }
176 #[doc = "`OnDecideSynthesis(crate::app::ringdata::RingData, i32, i32, i32, crate::app::basicmenuselect::BasicMenuSelect)` overload"]
177 fn on_decide_synthesis(
178 self,
179 ring_data: impl ::core::convert::Into<crate::app::ringdata::RingData>,
180 count_base_ring: impl ::core::convert::Into<i32>,
181 count_piece_of_bonds: impl ::core::convert::Into<i32>,
182 god_unit_index: impl ::core::convert::Into<i32>,
183 menu_select: impl ::core::convert::Into<crate::app::basicmenuselect::BasicMenuSelect>,
184 ) -> () {
185 unsafe {
186 let __receiver = <SynthesisRingMenuTop as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x20b5150usize)as*mut u8,();
188(SynthesisRingMenuTop)__receiver,(crate::app::ringdata::RingData)::core::convert::Into::into(ring_data),(i32)::core::convert::Into::into(count_base_ring),(i32)::core::convert::Into::into(count_piece_of_bonds),(i32)::core::convert::Into::into(god_unit_index),(crate::app::basicmenuselect::BasicMenuSelect)::core::convert::Into::into(menu_select))
189 }
190 }
191 #[doc = "`OnYesToConfirm()` overload"]
192 fn on_yes_to_confirm(self) -> () {
193 unsafe {
194 let __receiver = <SynthesisRingMenuTop as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x20b53d0usize)as*mut u8,();
196(SynthesisRingMenuTop)__receiver)
197 }
198 }
199 #[doc = "`OnCancelClose()` overload"]
200 fn on_cancel_close(self) -> () {
201 unsafe {
202 let __receiver = <SynthesisRingMenuTop as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x20b5480usize)as*mut u8,();
204(SynthesisRingMenuTop)__receiver)
205 }
206 }
207}
208
209#[cfg(feature = "app-synthesisringmenutop")]
210impl<__T: ISynthesisRingMenuTop> ISynthesisRingMenuTopMethods for __T {}
211
212#[cfg(feature = "app-synthesisringmenutop")]
213impl SynthesisRingMenuTop {
214 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
216 }
217
218 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
220 }
221
222 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
224 }
225
226 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
228 }
229
230 pub fn on_decide_synthesis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
232 }
233
234 pub fn on_yes_to_confirm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
236 }
237
238 pub fn on_cancel_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
240 }
241}
242
243#[cfg(feature = "app-synthesisringmenutop")]
244impl SynthesisRingMenuTop {
245 #[doc = "`.ctor(crate::app::procinst::ProcInst, i32, crate::app::basicmenuselect::BasicMenuSelect, crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler)` — overload selector"]
246 pub fn new(
247 super_: crate::app::procinst::ProcInst,
248 initial_god_unit_index: i32,
249 initial_menu_select: crate::app::basicmenuselect::BasicMenuSelect,
250 decide_event_handler: crate::app::synthesisringmenutop::SynthesisRingMenuTop_DecideEventHandler,
251 ) -> Self {
252 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
253 panic!(
254 "{}
255::{}
256 failed to instantiate",
257 ::core::stringify!(SynthesisRingMenuTop),
258 ::core::stringify!(new),
259 )
260 });
261 <Self as ISynthesisRingMenuTopMethods>::ctor(this, super_, initial_god_unit_index, initial_menu_select, decide_event_handler);
262 this
263 }
264}
265
266#[cfg(feature = "app-synthesisringmenutop")]
267pub trait ISynthesisRingMenuTop_DecideEventHandlerMethods: ISynthesisRingMenuTop_DecideEventHandler {
268 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
269 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
270 unsafe {
271 let __receiver = <SynthesisRingMenuTop_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
272 <Self as ::unity::SystemObject>::as_instance(self),
273 );
274 ::unity::il2cpp_call!((::unity::module_base()+0x21f79e0usize)as*mut u8,();
275(SynthesisRingMenuTop_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
276 }
277 }
278 #[doc = "`Invoke(crate::app::synthesisringmenutop::SynthesisRingMenuTop_Result)` overload"]
279 fn invoke(self, result: impl ::core::convert::Into<crate::app::synthesisringmenutop::SynthesisRingMenuTop_Result>) -> () {
280 unsafe {
281 let __receiver = <SynthesisRingMenuTop_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
282 <Self as ::unity::SystemObject>::as_instance(self),
283 );
284 {
285 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
286 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
287 panic!(
288 "unity: virtual slot {}
289 out of range (vtable len {}
290) on the runtime class behind {}
291 (method `{}
292`)",
293 13usize,
294 __vt.len(),
295 <SynthesisRingMenuTop_DecideEventHandler as ::unity::ClassIdentity>::NAME,
296 "Invoke",
297 )
298 });
299 let __inner: extern "C" fn(
300 SynthesisRingMenuTop_DecideEventHandler,
301 crate::app::synthesisringmenutop::SynthesisRingMenuTop_Result,
302 ::unity::OptionalMethod,
303 ) -> () = ::core::mem::transmute(__vi.method_ptr);
304 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305 __inner(__receiver, ::core::convert::Into::into(result), __mi)
306 }
307 }
308 }
309}
310
311#[cfg(feature = "app-synthesisringmenutop")]
312impl<__T: ISynthesisRingMenuTop_DecideEventHandler> ISynthesisRingMenuTop_DecideEventHandlerMethods for __T {}
313
314#[cfg(feature = "app-synthesisringmenutop")]
315impl SynthesisRingMenuTop_DecideEventHandler {
316 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
318 }
319
320 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
322 }
323}
324
325#[cfg(feature = "app-synthesisringmenutop")]
326impl SynthesisRingMenuTop_DecideEventHandler {
327 #[doc = "Direct (non-virtual) call to `SynthesisRingMenuTop_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
328 pub unsafe fn invoke(
329 this: impl ::core::convert::Into<::unity::IlInstance>,
330 result: crate::app::synthesisringmenutop::SynthesisRingMenuTop_Result,
331 ) -> () {
332 let __mi = Self::invoke_method_info();
333 let __inner: extern "C" fn(
334 ::unity::IlInstance,
335 crate::app::synthesisringmenutop::SynthesisRingMenuTop_Result,
336 ::unity::OptionalMethod,
337 ) -> () = ::core::mem::transmute(__mi.method_ptr);
338 __inner(this.into(), result, ::core::option::Option::None)
339 }
340}
341
342#[cfg(feature = "app-synthesisringmenutop")]
343impl SynthesisRingMenuTop_DecideEventHandler {
344 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
345 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
346 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
347 panic!(
348 "{}
349::{}
350 failed to instantiate",
351 ::core::stringify!(SynthesisRingMenuTop_DecideEventHandler),
352 ::core::stringify!(new),
353 )
354 });
355 <Self as ISynthesisRingMenuTop_DecideEventHandlerMethods>::ctor(this, object, method);
356 this
357 }
358}
359
360#[cfg(feature = "app-synthesisringmenutop")]
361#[doc(hidden)]
362pub mod prelude {
363 pub use super::{
364 ISynthesisRingMenuTop, ISynthesisRingMenuTopMethods, ISynthesisRingMenuTop_DecideEventHandler,
365 ISynthesisRingMenuTop_DecideEventHandlerMethods, ISynthesisRingMenuTop_Result, ISynthesisRingMenuTop_ResultMethods, SynthesisRingMenuTop,
366 SynthesisRingMenuTop_DecideEventHandler, SynthesisRingMenuTop_Result,
367 };
368 #[cfg(feature = "system-delegate")]
369 pub use crate::system::delegate::IDelegateMethods;
370 #[cfg(feature = "system-multicastdelegate")]
371 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
372 #[cfg(feature = "system-object")]
373 pub use crate::system::object::IObjectMethods;
374 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
375}