engage/generated/app/
itemshopbuymenucontent.rs1#[cfg(feature = "app-itemshopbuymenucontent-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/itemshopbuymenucontent/ItemShopBuyMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "ItemShopBuyMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct ItemShopBuyMenuContent {
23 #[offset(232)]
24 #[rename(name = "m_ColumnTitleItemText")]
25 pub m_column_title_item_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26 #[offset(240)]
27 #[rename(name = "m_ColumnTitleCountText")]
28 pub m_column_title_count_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29 #[offset(248)]
30 #[rename(name = "m_ColumnTitleStockText")]
31 pub m_column_title_stock_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32 #[offset(256)]
33 #[rename(name = "m_ColumnTitlePriceText")]
34 pub m_column_title_price_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35 #[offset(264)]
36 #[rename(name = "m_ContentObject")]
37 pub m_content_object: crate::unity_engine::gameobject::GameObject,
38 #[offset(272)]
39 #[rename(name = "m_ItemDetailMessageText")]
40 pub m_item_detail_message_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
41 #[offset(280)]
42 #[rename(name = "m_ItemDetailSubMessageText")]
43 pub m_item_detail_sub_message_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
44 }
45}
46
47#[cfg(feature = "app-itemshopbuymenucontent-types")]
48pub use __types::*;
49
50#[cfg(feature = "app-itemshopbuymenucontent")]
51pub trait IItemShopBuyMenuContentMethods: IItemShopBuyMenuContent {
52 #[doc = "`Start()` overload"]
53 fn start(self) -> () {
54 unsafe {
55 let __receiver =
56 <ItemShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 {
58 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
59 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
60 panic!(
61 "unity: virtual slot {}
62 out of range (vtable len {}
63) on the runtime class behind {}
64 (method `{}
65`)",
66 31usize,
67 __vt.len(),
68 <ItemShopBuyMenuContent as ::unity::ClassIdentity>::NAME,
69 "Start",
70 )
71 });
72 let __inner: extern "C" fn(ItemShopBuyMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
73 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
74 __inner(__receiver, __mi)
75 }
76 }
77 }
78 #[doc = "`GetMenuItemContentMax()` overload"]
79 fn get_menu_item_content_max(self) -> i32 {
80 unsafe {
81 let __receiver =
82 <ItemShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 {
84 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
86 panic!(
87 "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92 4usize,
93 __vt.len(),
94 <ItemShopBuyMenuContent as ::unity::ClassIdentity>::NAME,
95 "GetMenuItemContentMax",
96 )
97 });
98 let __inner: extern "C" fn(ItemShopBuyMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
99 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100 __inner(__receiver, __mi)
101 }
102 }
103 }
104 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
105 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
106 unsafe {
107 let __receiver =
108 <ItemShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 {
110 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
112 panic!(
113 "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118 10usize,
119 __vt.len(),
120 <ItemShopBuyMenuContent as ::unity::ClassIdentity>::NAME,
121 "CalcCursorMovedPosY",
122 )
123 });
124 let __inner: extern "C" fn(ItemShopBuyMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
125 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
127 }
128 }
129 }
130 #[doc = "`UpdateItemDetailMessages(crate::app::itemdata::ItemData)` overload"]
131 fn update_item_detail_messages(self, item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
132 unsafe {
133 let __receiver =
134 <ItemShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x204b3b0usize)as*mut u8,();
136(ItemShopBuyMenuContent)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data))
137 }
138 }
139 #[doc = "`.ctor()` overload"]
140 fn ctor(self) -> () {
141 unsafe {
142 let __receiver =
143 <ItemShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 ::unity::il2cpp_call!((::unity::module_base()+0x204b980usize)as*mut u8,();
145(ItemShopBuyMenuContent)__receiver)
146 }
147 }
148}
149
150#[cfg(feature = "app-itemshopbuymenucontent")]
151impl<__T: IItemShopBuyMenuContent> IItemShopBuyMenuContentMethods for __T {}
152
153#[cfg(feature = "app-itemshopbuymenucontent")]
154impl ItemShopBuyMenuContent {
155 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
157 }
158
159 pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
161 }
162
163 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
165 }
166
167 pub fn update_item_detail_messages_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
169 }
170
171 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
173 }
174}
175
176#[cfg(feature = "app-itemshopbuymenucontent")]
177impl ItemShopBuyMenuContent {
178 #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
179 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
180 let __mi = Self::start_method_info();
181 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
182 __inner(this.into(), ::core::option::Option::None)
183 }
184
185 #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
186 pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
187 let __mi = Self::get_menu_item_content_max_method_info();
188 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
189 __inner(this.into(), ::core::option::Option::None)
190 }
191
192 #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
193 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
194 let __mi = Self::calc_cursor_moved_pos_y_method_info();
195 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
196 __inner(this.into(), menu_item_index, ::core::option::Option::None)
197 }
198}
199
200#[cfg(feature = "app-itemshopbuymenucontent")]
201impl ItemShopBuyMenuContent {
202 #[doc = "`.ctor()` — no args"]
203 pub fn new() -> Self {
204 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
205 panic!(
206 "{}
207::{}
208 failed to instantiate",
209 ::core::stringify!(ItemShopBuyMenuContent),
210 ::core::stringify!(new),
211 )
212 });
213 <Self as IItemShopBuyMenuContentMethods>::ctor(this);
214 this
215 }
216}
217
218#[cfg(feature = "app-itemshopbuymenucontent")]
219#[doc(hidden)]
220pub mod prelude {
221 pub use super::{IItemShopBuyMenuContent, IItemShopBuyMenuContentMethods, ItemShopBuyMenuContent};
222 #[cfg(feature = "app-basicmenucontent")]
223 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
224 #[cfg(feature = "system-object")]
225 pub use crate::system::object::IObjectMethods;
226 #[cfg(feature = "unity_engine-behaviour")]
227 pub use crate::unity_engine::behaviour::IBehaviourMethods;
228 #[cfg(feature = "unity_engine-component")]
229 pub use crate::unity_engine::component::IComponentMethods;
230 #[cfg(feature = "unity_engine-monobehaviour")]
231 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
232 #[cfg(feature = "unity_engine-object_2")]
233 pub use crate::unity_engine::object_2::IObject_2Methods;
234 pub use crate::{
235 app::basicmenucontent::IBasicMenuContent,
236 system::object::IObject,
237 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
238 };
239}