1#[cfg(feature = "app-refreshunitsetmenucontent-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/refreshunitsetmenucontent/RefreshUnitSetMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "RefreshUnitSetMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct RefreshUnitSetMenuContent {
23 #[offset(232)]
24 #[rename(name = "m_DecideMenuContent")]
25 pub m_decide_menu_content: crate::app::refreshunitsetdecidemenucontent::RefreshUnitSetDecideMenuContent,
26 #[offset(240)]
27 #[rename(name = "m_FacilityNameText")]
28 pub m_facility_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29 #[offset(248)]
30 #[rename(name = "m_PageIconImage")]
31 pub m_page_icon_image: ::unity::Array<crate::unity_engine::ui::image::Image>,
32 #[offset(256)]
33 #[rename(name = "m_RelianceCaptionText")]
34 pub m_reliance_caption_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35 #[offset(264)]
36 #[rename(name = "m_RelianceRankCImage")]
37 pub m_reliance_rank_c_image: crate::unity_engine::ui::image::Image,
38 #[offset(272)]
39 #[rename(name = "m_RelianceRankBImage")]
40 pub m_reliance_rank_b_image: crate::unity_engine::ui::image::Image,
41 #[offset(280)]
42 #[rename(name = "m_RelianceRankAImage")]
43 pub m_reliance_rank_a_image: crate::unity_engine::ui::image::Image,
44 #[offset(288)]
45 #[rename(name = "m_RelianceRankSImage")]
46 pub m_reliance_rank_s_image: crate::unity_engine::ui::image::Image,
47 #[offset(296)]
48 #[rename(name = "m_RelianceNoneImage")]
49 pub m_reliance_none_image: crate::unity_engine::ui::image::Image,
50 }
51}
52
53#[cfg(feature = "app-refreshunitsetmenucontent-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-refreshunitsetmenucontent")]
57pub trait IRefreshUnitSetMenuContentMethods: IRefreshUnitSetMenuContent {
58 #[doc = "`Start()` overload"]
59 fn start(self) -> () {
60 unsafe {
61 let __receiver =
62 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 {
64 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
65 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
66 panic!(
67 "unity: virtual slot {}
68 out of range (vtable len {}
69) on the runtime class behind {}
70 (method `{}
71`)",
72 31usize,
73 __vt.len(),
74 <RefreshUnitSetMenuContent as ::unity::ClassIdentity>::NAME,
75 "Start",
76 )
77 });
78 let __inner: extern "C" fn(RefreshUnitSetMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
79 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80 __inner(__receiver, __mi)
81 }
82 }
83 }
84 #[doc = "`GetRefreshUnitSetDecideMenuContent()` overload"]
85 fn get_refresh_unit_set_decide_menu_content(self) -> crate::app::refreshunitsetdecidemenucontent::RefreshUnitSetDecideMenuContent {
86 unsafe {
87 let __receiver =
88 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x22c6640usize)as*mut u8,crate::app::refreshunitsetdecidemenucontent::RefreshUnitSetDecideMenuContent;
90(RefreshUnitSetMenuContent)__receiver)
91 }
92 }
93 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
94 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
95 unsafe {
96 let __receiver =
97 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 10usize,
108 __vt.len(),
109 <RefreshUnitSetMenuContent as ::unity::ClassIdentity>::NAME,
110 "CalcCursorMovedPosY",
111 )
112 });
113 let __inner: extern "C" fn(RefreshUnitSetMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
114 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
116 }
117 }
118 }
119 #[doc = "`CalcW()` overload"]
120 fn calc_w(self) -> f32 {
121 unsafe {
122 let __receiver =
123 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 {
125 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
126 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
127 panic!(
128 "unity: virtual slot {}
129 out of range (vtable len {}
130) on the runtime class behind {}
131 (method `{}
132`)",
133 21usize,
134 __vt.len(),
135 <RefreshUnitSetMenuContent as ::unity::ClassIdentity>::NAME,
136 "CalcW",
137 )
138 });
139 let __inner: extern "C" fn(RefreshUnitSetMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
140 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141 __inner(__receiver, __mi)
142 }
143 }
144 }
145 #[doc = "`CalcH()` overload"]
146 fn calc_h(self) -> f32 {
147 unsafe {
148 let __receiver =
149 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 {
151 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
152 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
153 panic!(
154 "unity: virtual slot {}
155 out of range (vtable len {}
156) on the runtime class behind {}
157 (method `{}
158`)",
159 22usize,
160 __vt.len(),
161 <RefreshUnitSetMenuContent as ::unity::ClassIdentity>::NAME,
162 "CalcH",
163 )
164 });
165 let __inner: extern "C" fn(RefreshUnitSetMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
166 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167 __inner(__receiver, __mi)
168 }
169 }
170 }
171 #[doc = "`UpdateFacility(::unity::Il2CppString, i32, i32)` overload"]
172 fn update_facility(
173 self,
174 mid: impl ::core::convert::Into<::unity::Il2CppString>,
175 index: impl ::core::convert::Into<i32>,
176 facility_count: impl ::core::convert::Into<i32>,
177 ) -> () {
178 unsafe {
179 let __receiver =
180 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x22c5c30usize)as*mut u8,();
182(RefreshUnitSetMenuContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(mid),(i32)::core::convert::Into::into(index),(i32)::core::convert::Into::into(facility_count))
183 }
184 }
185 #[doc = "`UpdateContent(crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
186 fn update_content(
187 self,
188 unit0: impl ::core::convert::Into<crate::app::unit::Unit>,
189 unit1: impl ::core::convert::Into<crate::app::unit::Unit>,
190 ) -> () {
191 unsafe {
192 let __receiver =
193 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x22c6010usize)as*mut u8,();
195(RefreshUnitSetMenuContent)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit0),(crate::app::unit::Unit)::core::convert::Into::into(unit1))
196 }
197 }
198 #[doc = "`.ctor()` overload"]
199 fn ctor(self) -> () {
200 unsafe {
201 let __receiver =
202 <RefreshUnitSetMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x22c6820usize)as*mut u8,();
204(RefreshUnitSetMenuContent)__receiver)
205 }
206 }
207}
208
209#[cfg(feature = "app-refreshunitsetmenucontent")]
210impl<__T: IRefreshUnitSetMenuContent> IRefreshUnitSetMenuContentMethods for __T {}
211
212#[cfg(feature = "app-refreshunitsetmenucontent")]
213impl RefreshUnitSetMenuContent {
214 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
216 }
217
218 pub fn get_refresh_unit_set_decide_menu_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
220 }
221
222 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
224 }
225
226 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
228 }
229
230 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
232 }
233
234 pub fn update_facility_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
236 }
237
238 pub fn update_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
240 }
241
242 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
244 }
245}
246
247#[cfg(feature = "app-refreshunitsetmenucontent")]
248impl RefreshUnitSetMenuContent {
249 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
251 let __mi = Self::start_method_info();
252 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
253 __inner(this.into(), ::core::option::Option::None)
254 }
255
256 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
258 let __mi = Self::calc_cursor_moved_pos_y_method_info();
259 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
260 __inner(this.into(), menu_item_index, ::core::option::Option::None)
261 }
262
263 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
264 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
265 let __mi = Self::calc_w_method_info();
266 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
267 __inner(this.into(), ::core::option::Option::None)
268 }
269
270 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
271 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
272 let __mi = Self::calc_h_method_info();
273 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
274 __inner(this.into(), ::core::option::Option::None)
275 }
276}
277
278#[cfg(feature = "app-refreshunitsetmenucontent")]
279impl RefreshUnitSetMenuContent {
280 #[doc = "`.ctor()` — no args"]
281 pub fn new() -> Self {
282 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
283 panic!(
284 "{}
285::{}
286 failed to instantiate",
287 ::core::stringify!(RefreshUnitSetMenuContent),
288 ::core::stringify!(new),
289 )
290 });
291 <Self as IRefreshUnitSetMenuContentMethods>::ctor(this);
292 this
293 }
294}
295
296#[cfg(feature = "app-refreshunitsetmenucontent")]
297#[doc(hidden)]
298pub mod prelude {
299 pub use super::{IRefreshUnitSetMenuContent, IRefreshUnitSetMenuContentMethods, RefreshUnitSetMenuContent};
300 #[cfg(feature = "app-basicmenucontent")]
301 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
302 #[cfg(feature = "system-object")]
303 pub use crate::system::object::IObjectMethods;
304 #[cfg(feature = "unity_engine-behaviour")]
305 pub use crate::unity_engine::behaviour::IBehaviourMethods;
306 #[cfg(feature = "unity_engine-component")]
307 pub use crate::unity_engine::component::IComponentMethods;
308 #[cfg(feature = "unity_engine-monobehaviour")]
309 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
310 #[cfg(feature = "unity_engine-object_2")]
311 pub use crate::unity_engine::object_2::IObject_2Methods;
312 pub use crate::{
313 app::basicmenucontent::IBasicMenuContent,
314 system::object::IObject,
315 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
316 };
317}