1#[cfg(feature = "app-refreshunitsetdecidemenucontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitsetdecidemenucontent/RefreshUnitSetDecideMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "RefreshUnitSetDecideMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct RefreshUnitSetDecideMenuContent {
23 #[offset(232)]
24 #[rename(name = "m_DecideObject")]
25 pub m_decide_object: crate::unity_engine::gameobject::GameObject,
26 #[offset(240)]
27 #[rename(name = "m_MenuItemContent")]
28 pub m_menu_item_content: crate::app::basicmenuitemcontent::BasicMenuItemContent,
29 #[offset(248)]
30 #[rename(name = "m_DecideText")]
31 pub m_decide_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32 #[offset(256)]
33 #[rename(name = "m_BackCursorObject")]
34 pub m_back_cursor_object: crate::unity_engine::gameobject::GameObject,
35 #[offset(264)]
36 #[rename(name = "m_FrontCursorObject")]
37 pub m_front_cursor_object: crate::unity_engine::gameobject::GameObject,
38 #[offset(272)]
39 #[rename(name = "m_Usabled")]
40 pub m_usabled: bool,
41 }
42}
43
44#[cfg(feature = "app-refreshunitsetdecidemenucontent-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-refreshunitsetdecidemenucontent")]
48pub trait IRefreshUnitSetDecideMenuContentMethods: IRefreshUnitSetDecideMenuContent {
49 #[doc = "`InitObjReference()` overload"]
50 fn init_obj_reference(self) -> () {
51 unsafe {
52 let __receiver =
53 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 {
55 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
57 panic!(
58 "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63 13usize,
64 __vt.len(),
65 <RefreshUnitSetDecideMenuContent as ::unity::ClassIdentity>::NAME,
66 "InitObjReference",
67 )
68 });
69 let __inner: extern "C" fn(RefreshUnitSetDecideMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
70 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71 __inner(__receiver, __mi)
72 }
73 }
74 }
75 #[doc = "`Start()` overload"]
76 fn start(self) -> () {
77 unsafe {
78 let __receiver =
79 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 {
81 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
83 panic!(
84 "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89 31usize,
90 __vt.len(),
91 <RefreshUnitSetDecideMenuContent as ::unity::ClassIdentity>::NAME,
92 "Start",
93 )
94 });
95 let __inner: extern "C" fn(RefreshUnitSetDecideMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(__receiver, __mi)
98 }
99 }
100 }
101 #[doc = "`BuildMenuItemContent()` overload"]
102 fn build_menu_item_content(self) -> () {
103 unsafe {
104 let __receiver =
105 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 18usize,
116 __vt.len(),
117 <RefreshUnitSetDecideMenuContent as ::unity::ClassIdentity>::NAME,
118 "BuildMenuItemContent",
119 )
120 });
121 let __inner: extern "C" fn(RefreshUnitSetDecideMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
122 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123 __inner(__receiver, __mi)
124 }
125 }
126 }
127 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
128 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
129 unsafe {
130 let __receiver =
131 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 {
133 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
135 panic!(
136 "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141 10usize,
142 __vt.len(),
143 <RefreshUnitSetDecideMenuContent as ::unity::ClassIdentity>::NAME,
144 "CalcCursorMovedPosY",
145 )
146 });
147 let __inner: extern "C" fn(RefreshUnitSetDecideMenuContent, i32, ::unity::OptionalMethod) -> f32 =
148 ::core::mem::transmute(__vi.method_ptr);
149 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
151 }
152 }
153 }
154 #[doc = "`CalcW()` overload"]
155 fn calc_w(self) -> f32 {
156 unsafe {
157 let __receiver =
158 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 {
160 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
161 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
162 panic!(
163 "unity: virtual slot {}
164 out of range (vtable len {}
165) on the runtime class behind {}
166 (method `{}
167`)",
168 21usize,
169 __vt.len(),
170 <RefreshUnitSetDecideMenuContent as ::unity::ClassIdentity>::NAME,
171 "CalcW",
172 )
173 });
174 let __inner: extern "C" fn(RefreshUnitSetDecideMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
175 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
176 __inner(__receiver, __mi)
177 }
178 }
179 }
180 #[doc = "`CalcH()` overload"]
181 fn calc_h(self) -> f32 {
182 unsafe {
183 let __receiver =
184 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 {
186 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
187 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
188 panic!(
189 "unity: virtual slot {}
190 out of range (vtable len {}
191) on the runtime class behind {}
192 (method `{}
193`)",
194 22usize,
195 __vt.len(),
196 <RefreshUnitSetDecideMenuContent as ::unity::ClassIdentity>::NAME,
197 "CalcH",
198 )
199 });
200 let __inner: extern "C" fn(RefreshUnitSetDecideMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
201 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202 __inner(__receiver, __mi)
203 }
204 }
205 }
206 #[doc = "`SetText(bool)` overload"]
207 fn set_text(self, usabled: impl ::core::convert::Into<bool>) -> () {
208 unsafe {
209 let __receiver =
210 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x22c3980usize)as*mut u8,();
212(RefreshUnitSetDecideMenuContent)__receiver,(bool)::core::convert::Into::into(usabled))
213 }
214 }
215 #[doc = "`SetDecideTextColor(crate::unity_engine::color::Color)` overload"]
216 fn set_decide_text_color(self, color: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
217 unsafe {
218 let __receiver =
219 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 ::unity::il2cpp_call!((::unity::module_base()+0x22c3c80usize)as*mut u8,();
221(RefreshUnitSetDecideMenuContent)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(color))
222 }
223 }
224 #[doc = "`.ctor()` overload"]
225 fn ctor(self) -> () {
226 unsafe {
227 let __receiver =
228 <RefreshUnitSetDecideMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x22c4970usize)as*mut u8,();
230(RefreshUnitSetDecideMenuContent)__receiver)
231 }
232 }
233}
234
235#[cfg(feature = "app-refreshunitsetdecidemenucontent")]
236impl<__T: IRefreshUnitSetDecideMenuContent> IRefreshUnitSetDecideMenuContentMethods for __T {}
237
238#[cfg(feature = "app-refreshunitsetdecidemenucontent")]
239impl RefreshUnitSetDecideMenuContent {
240 pub fn init_obj_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
242 }
243
244 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
246 }
247
248 pub fn build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
250 }
251
252 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
254 }
255
256 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
258 }
259
260 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
262 }
263
264 pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
266 }
267
268 pub fn set_decide_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
270 }
271
272 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
274 }
275}
276
277#[cfg(feature = "app-refreshunitsetdecidemenucontent")]
278impl RefreshUnitSetDecideMenuContent {
279 #[doc = "Direct (non-virtual) call to `RefreshUnitSetDecideMenuContent`'s own `InitObjReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
280 pub unsafe fn init_obj_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
281 let __mi = Self::init_obj_reference_method_info();
282 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
283 __inner(this.into(), ::core::option::Option::None)
284 }
285
286 #[doc = "Direct (non-virtual) call to `RefreshUnitSetDecideMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
287 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
288 let __mi = Self::start_method_info();
289 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
290 __inner(this.into(), ::core::option::Option::None)
291 }
292
293 #[doc = "Direct (non-virtual) call to `RefreshUnitSetDecideMenuContent`'s own `BuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
294 pub unsafe fn build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
295 let __mi = Self::build_menu_item_content_method_info();
296 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
297 __inner(this.into(), ::core::option::Option::None)
298 }
299
300 #[doc = "Direct (non-virtual) call to `RefreshUnitSetDecideMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
301 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
302 let __mi = Self::calc_cursor_moved_pos_y_method_info();
303 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
304 __inner(this.into(), menu_item_index, ::core::option::Option::None)
305 }
306
307 #[doc = "Direct (non-virtual) call to `RefreshUnitSetDecideMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
309 let __mi = Self::calc_w_method_info();
310 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
311 __inner(this.into(), ::core::option::Option::None)
312 }
313
314 #[doc = "Direct (non-virtual) call to `RefreshUnitSetDecideMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
315 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
316 let __mi = Self::calc_h_method_info();
317 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
318 __inner(this.into(), ::core::option::Option::None)
319 }
320}
321
322#[cfg(feature = "app-refreshunitsetdecidemenucontent")]
323impl RefreshUnitSetDecideMenuContent {
324 #[doc = "`.ctor()` — no args"]
325 pub fn new() -> Self {
326 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
327 panic!(
328 "{}
329::{}
330 failed to instantiate",
331 ::core::stringify!(RefreshUnitSetDecideMenuContent),
332 ::core::stringify!(new),
333 )
334 });
335 <Self as IRefreshUnitSetDecideMenuContentMethods>::ctor(this);
336 this
337 }
338}
339
340#[cfg(feature = "app-refreshunitsetdecidemenucontent")]
341#[doc(hidden)]
342pub mod prelude {
343 pub use super::{IRefreshUnitSetDecideMenuContent, IRefreshUnitSetDecideMenuContentMethods, RefreshUnitSetDecideMenuContent};
344 #[cfg(feature = "app-basicmenucontent")]
345 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
346 #[cfg(feature = "system-object")]
347 pub use crate::system::object::IObjectMethods;
348 #[cfg(feature = "unity_engine-behaviour")]
349 pub use crate::unity_engine::behaviour::IBehaviourMethods;
350 #[cfg(feature = "unity_engine-component")]
351 pub use crate::unity_engine::component::IComponentMethods;
352 #[cfg(feature = "unity_engine-monobehaviour")]
353 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
354 #[cfg(feature = "unity_engine-object_2")]
355 pub use crate::unity_engine::object_2::IObject_2Methods;
356 pub use crate::{
357 app::basicmenucontent::IBasicMenuContent,
358 system::object::IObject,
359 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
360 };
361}