1#[cfg(feature = "app-refineringtimesselectmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineringtimesselectmenuitem/RefineRingTimesSelectMenuItem.md"))]
14 #[::unity::class(namespace = "App", name = "RefineRingTimesSelectMenuItem")]
15 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16 pub struct RefineRingTimesSelectMenuItem {
17 #[offset(112)]
18 #[rename(name = "m_DecideEventHandler")]
19 pub m_decide_event_handler: crate::app::refineringtimesselectmenu::RefineRingTimesSelectMenu_DecideEventHandler,
20 }
21}
22
23#[cfg(feature = "app-refineringtimesselectmenuitem-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-refineringtimesselectmenuitem")]
27pub trait IRefineRingTimesSelectMenuItemMethods: IRefineRingTimesSelectMenuItem {
28 #[doc = "`get_m_Times()` overload"]
29 fn get_m_times(self) -> i32 {
30 unsafe {
31 let __receiver =
32 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x2957730usize)as*mut u8,i32;
34(RefineRingTimesSelectMenuItem)__receiver)
35 }
36 }
37 #[doc = "`set_m_Times(i32)` overload"]
38 fn set_m_times(self, value: impl ::core::convert::Into<i32>) -> () {
39 unsafe {
40 let __receiver =
41 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x2957740usize)as*mut u8,();
43(RefineRingTimesSelectMenuItem)__receiver,(i32)::core::convert::Into::into(value))
44 }
45 }
46 #[doc = "`get_m_PiecesOfBond()` overload"]
47 fn get_m_pieces_of_bond(self) -> i32 {
48 unsafe {
49 let __receiver =
50 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2957750usize)as*mut u8,i32;
52(RefineRingTimesSelectMenuItem)__receiver)
53 }
54 }
55 #[doc = "`set_m_PiecesOfBond(i32)` overload"]
56 fn set_m_pieces_of_bond(self, value: impl ::core::convert::Into<i32>) -> () {
57 unsafe {
58 let __receiver =
59 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2957760usize)as*mut u8,();
61(RefineRingTimesSelectMenuItem)__receiver,(i32)::core::convert::Into::into(value))
62 }
63 }
64 #[doc = "`get_m_IsEnoughPieceOfBond()` overload"]
65 fn get_m_is_enough_piece_of_bond(self) -> bool {
66 unsafe {
67 let __receiver =
68 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69 ::unity::il2cpp_call!((::unity::module_base()+0x2957770usize)as*mut u8,bool;
70(RefineRingTimesSelectMenuItem)__receiver)
71 }
72 }
73 #[doc = "`set_m_IsEnoughPieceOfBond(bool)` overload"]
74 fn set_m_is_enough_piece_of_bond(self, value: impl ::core::convert::Into<bool>) -> () {
75 unsafe {
76 let __receiver =
77 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x2957780usize)as*mut u8,();
79(RefineRingTimesSelectMenuItem)__receiver,(bool)::core::convert::Into::into(value))
80 }
81 }
82 #[doc = "`.ctor(i32, crate::app::refineringtimesselectmenu::RefineRingTimesSelectMenu_DecideEventHandler)` overload"]
83 fn ctor(
84 self,
85 times: impl ::core::convert::Into<i32>,
86 decide_event_handler: impl ::core::convert::Into<crate::app::refineringtimesselectmenu::RefineRingTimesSelectMenu_DecideEventHandler>,
87 ) -> () {
88 unsafe {
89 let __receiver =
90 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x2957110usize)as*mut u8,();
92(RefineRingTimesSelectMenuItem)__receiver,(i32)::core::convert::Into::into(times),(crate::app::refineringtimesselectmenu::RefineRingTimesSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
93 }
94 }
95 #[doc = "`GetName()` overload"]
96 fn get_name(self) -> ::unity::Il2CppString {
97 unsafe {
98 let __receiver =
99 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 4usize,
110 __vt.len(),
111 <RefineRingTimesSelectMenuItem as ::unity::ClassIdentity>::NAME,
112 "GetName",
113 )
114 });
115 let __inner: extern "C" fn(RefineRingTimesSelectMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
116 ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, __mi)
119 }
120 }
121 }
122 #[doc = "`BuildAttribute()` overload"]
123 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
124 unsafe {
125 let __receiver =
126 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 {
128 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
130 panic!(
131 "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136 8usize,
137 __vt.len(),
138 <RefineRingTimesSelectMenuItem as ::unity::ClassIdentity>::NAME,
139 "BuildAttribute",
140 )
141 });
142 let __inner: extern "C" fn(
143 RefineRingTimesSelectMenuItem,
144 ::unity::OptionalMethod,
145 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
146 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
147 __inner(__receiver, __mi)
148 }
149 }
150 }
151 #[doc = "`OnBuild()` overload"]
152 fn on_build(self) -> () {
153 unsafe {
154 let __receiver =
155 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 {
157 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
158 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
159 panic!(
160 "unity: virtual slot {}
161 out of range (vtable len {}
162) on the runtime class behind {}
163 (method `{}
164`)",
165 10usize,
166 __vt.len(),
167 <RefineRingTimesSelectMenuItem as ::unity::ClassIdentity>::NAME,
168 "OnBuild",
169 )
170 });
171 let __inner: extern "C" fn(RefineRingTimesSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
172 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
173 __inner(__receiver, __mi)
174 }
175 }
176 }
177 #[doc = "`OnBuildMenuItemContent()` overload"]
178 fn on_build_menu_item_content(self) -> () {
179 unsafe {
180 let __receiver =
181 <RefineRingTimesSelectMenuItem 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(11usize).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 11usize,
192 __vt.len(),
193 <RefineRingTimesSelectMenuItem as ::unity::ClassIdentity>::NAME,
194 "OnBuildMenuItemContent",
195 )
196 });
197 let __inner: extern "C" fn(RefineRingTimesSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
198 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
199 __inner(__receiver, __mi)
200 }
201 }
202 }
203 #[doc = "`SetInitialColor()` overload"]
204 fn set_initial_color(self) -> () {
205 unsafe {
206 let __receiver =
207 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x2957850usize)as*mut u8,();
209(RefineRingTimesSelectMenuItem)__receiver)
210 }
211 }
212 #[doc = "`ACall()` overload"]
213 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
214 unsafe {
215 let __receiver =
216 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217 {
218 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
219 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
220 panic!(
221 "unity: virtual slot {}
222 out of range (vtable len {}
223) on the runtime class behind {}
224 (method `{}
225`)",
226 18usize,
227 __vt.len(),
228 <RefineRingTimesSelectMenuItem as ::unity::ClassIdentity>::NAME,
229 "ACall",
230 )
231 });
232 let __inner: extern "C" fn(RefineRingTimesSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
233 ::core::mem::transmute(__vi.method_ptr);
234 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
235 __inner(__receiver, __mi)
236 }
237 }
238 }
239 #[doc = "`BCall()` overload"]
240 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
241 unsafe {
242 let __receiver =
243 <RefineRingTimesSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244 {
245 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
246 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
247 panic!(
248 "unity: virtual slot {}
249 out of range (vtable len {}
250) on the runtime class behind {}
251 (method `{}
252`)",
253 19usize,
254 __vt.len(),
255 <RefineRingTimesSelectMenuItem as ::unity::ClassIdentity>::NAME,
256 "BCall",
257 )
258 });
259 let __inner: extern "C" fn(RefineRingTimesSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
260 ::core::mem::transmute(__vi.method_ptr);
261 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
262 __inner(__receiver, __mi)
263 }
264 }
265 }
266}
267
268#[cfg(feature = "app-refineringtimesselectmenuitem")]
269impl<__T: IRefineRingTimesSelectMenuItem> IRefineRingTimesSelectMenuItemMethods for __T {}
270
271#[cfg(feature = "app-refineringtimesselectmenuitem")]
272impl RefineRingTimesSelectMenuItem {
273 pub fn get_m_times_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
275 }
276
277 pub fn set_m_times_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
279 }
280
281 pub fn get_m_pieces_of_bond_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
283 }
284
285 pub fn set_m_pieces_of_bond_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
287 }
288
289 pub fn get_m_is_enough_piece_of_bond_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
291 }
292
293 pub fn set_m_is_enough_piece_of_bond_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
295 }
296
297 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
299 }
300
301 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
303 }
304
305 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
307 }
308
309 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
311 }
312
313 pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
315 }
316
317 pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
319 }
320
321 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
323 }
324
325 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
327 }
328}
329
330#[cfg(feature = "app-refineringtimesselectmenuitem")]
331impl RefineRingTimesSelectMenuItem {
332 #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
333 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
334 let __mi = Self::get_name_method_info();
335 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
336 __inner(this.into(), ::core::option::Option::None)
337 }
338
339 #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
340 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
341 let __mi = Self::build_attribute_method_info();
342 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
343 ::core::mem::transmute(__mi.method_ptr);
344 __inner(this.into(), ::core::option::Option::None)
345 }
346
347 #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
348 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
349 let __mi = Self::on_build_method_info();
350 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
351 __inner(this.into(), ::core::option::Option::None)
352 }
353
354 #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
355 pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
356 let __mi = Self::on_build_menu_item_content_method_info();
357 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
358 __inner(this.into(), ::core::option::Option::None)
359 }
360
361 #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
362 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
363 let __mi = Self::a_call_method_info();
364 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
365 ::core::mem::transmute(__mi.method_ptr);
366 __inner(this.into(), ::core::option::Option::None)
367 }
368
369 #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
370 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
371 let __mi = Self::b_call_method_info();
372 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
373 ::core::mem::transmute(__mi.method_ptr);
374 __inner(this.into(), ::core::option::Option::None)
375 }
376}
377
378#[cfg(feature = "app-refineringtimesselectmenuitem")]
379impl RefineRingTimesSelectMenuItem {
380 #[doc = "`.ctor(i32, crate::app::refineringtimesselectmenu::RefineRingTimesSelectMenu_DecideEventHandler)` — overload selector"]
381 pub fn new(times: i32, decide_event_handler: crate::app::refineringtimesselectmenu::RefineRingTimesSelectMenu_DecideEventHandler) -> Self {
382 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
383 panic!(
384 "{}
385::{}
386 failed to instantiate",
387 ::core::stringify!(RefineRingTimesSelectMenuItem),
388 ::core::stringify!(new),
389 )
390 });
391 <Self as IRefineRingTimesSelectMenuItemMethods>::ctor(this, times, decide_event_handler);
392 this
393 }
394}
395
396#[cfg(feature = "app-refineringtimesselectmenuitem")]
397#[doc(hidden)]
398pub mod prelude {
399 pub use super::{IRefineRingTimesSelectMenuItem, IRefineRingTimesSelectMenuItemMethods, RefineRingTimesSelectMenuItem};
400 #[cfg(feature = "app-basicmenuitem")]
401 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
402 #[cfg(feature = "system-object")]
403 pub use crate::system::object::IObjectMethods;
404 pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
405}