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