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