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