1#[cfg(feature = "app-fleamarketbuyroot-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 delegate::{Delegate, IDelegate},
11 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12 object::{IObject, Object},
13 },
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/fleamarketbuyroot/FleaMarketBuyRoot_ReturnEventHandler.md"))]
23 #[::unity::class(namespace = "App", name = "FleaMarketBuyRoot.ReturnEventHandler")]
24 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25 pub struct FleaMarketBuyRoot_ReturnEventHandler {}
26
27 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fleamarketbuyroot/FleaMarketBuyRoot.md"))]
28 #[::unity::class(namespace = "App", name = "FleaMarketBuyRoot")]
29 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
30 pub struct FleaMarketBuyRoot {
31 #[static_field]
32 #[rename(name = "PrefabPath")]
33 pub prefab_path: ::unity::Il2CppString,
34 #[offset(24)]
35 #[rename(name = "m_MenuObject")]
36 pub m_menu_object: crate::unity_engine::gameobject::GameObject,
37 #[offset(32)]
38 #[rename(name = "m_HoldingInfoWindowObject")]
39 pub m_holding_info_window_object: crate::unity_engine::gameobject::GameObject,
40 #[offset(40)]
41 #[rename(name = "m_Unit")]
42 pub m_unit: crate::app::unit::Unit,
43 #[offset(48)]
44 #[rename(name = "m_FleaMarketBuyMenu")]
45 pub m_flea_market_buy_menu: crate::app::itemshopbuymenu::ItemShopBuyMenu,
46 #[offset(56)]
47 #[rename(name = "m_ItemHoldingInfoWindow")]
48 pub m_item_holding_info_window: crate::app::itemholdinginfowindow::ItemHoldingInfoWindow,
49 #[offset(64)]
50 #[rename(name = "m_ReturnEventHandler")]
51 pub m_return_event_handler: crate::app::fleamarketbuyroot::FleaMarketBuyRoot_ReturnEventHandler,
52 #[offset(72)]
53 #[rename(name = "m_UnitItem")]
54 pub m_unit_item: crate::app::unititem::UnitItem,
55 #[offset(80)]
56 #[rename(name = "m_ItemData")]
57 pub m_item_data: crate::app::itemdata::ItemData,
58 #[offset(88)]
59 #[rename(name = "m_IsSendingItemToTransporter")]
60 pub m_is_sending_item_to_transporter: bool,
61 #[offset(89)]
62 #[rename(name = "m_IsSendingUnitItem")]
63 pub m_is_sending_unit_item: bool,
64 #[offset(92)]
65 #[rename(name = "m_SendingUnitItemIndex")]
66 pub m_sending_unit_item_index: i32,
67 #[offset(96)]
68 #[rename(name = "m_IsDiscardingTransporterItem")]
69 pub m_is_discarding_transporter_item: bool,
70 #[offset(100)]
71 #[rename(name = "m_DiscardingTransporterItemIndex")]
72 pub m_discarding_transporter_item_index: i32,
73 #[offset(104)]
74 #[rename(name = "m_IsEnabledVoice")]
75 pub m_is_enabled_voice: bool,
76 }
77}
78
79#[cfg(feature = "app-fleamarketbuyroot-types")]
80pub use __types::*;
81
82#[cfg(feature = "app-fleamarketbuyroot")]
83pub trait IFleaMarketBuyRoot_ReturnEventHandlerMethods: IFleaMarketBuyRoot_ReturnEventHandler {
84 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
85 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
86 unsafe {
87 let __receiver = <FleaMarketBuyRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
88 <Self as ::unity::SystemObject>::as_instance(self),
89 );
90 ::unity::il2cpp_call!((::unity::module_base()+0x1e62930usize)as*mut u8,();
91(FleaMarketBuyRoot_ReturnEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
92 }
93 }
94 #[doc = "`Invoke(crate::app::unit::Unit)` overload"]
95 fn invoke(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
96 unsafe {
97 let __receiver = <FleaMarketBuyRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
98 <Self as ::unity::SystemObject>::as_instance(self),
99 );
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 13usize,
110 __vt.len(),
111 <FleaMarketBuyRoot_ReturnEventHandler as ::unity::ClassIdentity>::NAME,
112 "Invoke",
113 )
114 });
115 let __inner: extern "C" fn(FleaMarketBuyRoot_ReturnEventHandler, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
116 ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, ::core::convert::Into::into(unit), __mi)
119 }
120 }
121 }
122}
123
124#[cfg(feature = "app-fleamarketbuyroot")]
125impl<__T: IFleaMarketBuyRoot_ReturnEventHandler> IFleaMarketBuyRoot_ReturnEventHandlerMethods for __T {}
126
127#[cfg(feature = "app-fleamarketbuyroot")]
128impl FleaMarketBuyRoot_ReturnEventHandler {
129 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
131 }
132
133 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
135 }
136}
137
138#[cfg(feature = "app-fleamarketbuyroot")]
139impl FleaMarketBuyRoot_ReturnEventHandler {
140 #[doc = "Direct (non-virtual) call to `FleaMarketBuyRoot_ReturnEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
141 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unit::Unit) -> () {
142 let __mi = Self::invoke_method_info();
143 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
144 ::core::mem::transmute(__mi.method_ptr);
145 __inner(this.into(), unit, ::core::option::Option::None)
146 }
147}
148
149#[cfg(feature = "app-fleamarketbuyroot")]
150impl FleaMarketBuyRoot_ReturnEventHandler {
151 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
152 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
153 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
154 panic!(
155 "{}
156::{}
157 failed to instantiate",
158 ::core::stringify!(FleaMarketBuyRoot_ReturnEventHandler),
159 ::core::stringify!(new),
160 )
161 });
162 <Self as IFleaMarketBuyRoot_ReturnEventHandlerMethods>::ctor(this, object, method);
163 this
164 }
165}
166
167#[cfg(feature = "app-fleamarketbuyroot")]
168impl FleaMarketBuyRoot {
169 #[doc = "`LoadPrefabAsync()` overload"]
170 pub fn load_prefab_async() -> () {
171 unsafe {
172 ::unity::il2cpp_call!((::unity::module_base()+0x260ce80usize)as*mut u8,();
173 )
174 }
175 }
176
177 #[doc = "`IsLoadingPrefab()` overload"]
178 pub fn is_loading_prefab() -> bool {
179 unsafe {
180 ::unity::il2cpp_call!((::unity::module_base()+0x260cf20usize)as*mut u8,bool;
181 )
182 }
183 }
184
185 #[doc = "`UnloadPrefab()` overload"]
186 pub fn unload_prefab() -> () {
187 unsafe {
188 ::unity::il2cpp_call!((::unity::module_base()+0x260cfa0usize)as*mut u8,();
189 )
190 }
191 }
192
193 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::fleamarketbuyroot::FleaMarketBuyRoot_ReturnEventHandler, bool)` overload"]
194 pub fn create_bind(
195 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
196 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
197 return_event_handler: impl ::core::convert::Into<crate::app::fleamarketbuyroot::FleaMarketBuyRoot_ReturnEventHandler>,
198 is_enabled_voice: impl ::core::convert::Into<bool>,
199 ) -> crate::app::fleamarketbuyroot::FleaMarketBuyRoot {
200 unsafe {
201 ::unity::il2cpp_call!((::unity::module_base()+0x260d020usize)as*mut u8,crate::app::fleamarketbuyroot::FleaMarketBuyRoot;
202(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::fleamarketbuyroot::FleaMarketBuyRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler),(bool)::core::convert::Into::into(is_enabled_voice))
203 }
204 }
205
206 #[doc = "`Destroy(crate::app::fleamarketbuyroot::FleaMarketBuyRoot)` overload"]
207 pub fn destroy(root: impl ::core::convert::Into<crate::app::fleamarketbuyroot::FleaMarketBuyRoot>) -> () {
208 unsafe {
209 ::unity::il2cpp_call!((::unity::module_base()+0x260d540usize)as*mut u8,();
210(crate::app::fleamarketbuyroot::FleaMarketBuyRoot)::core::convert::Into::into(root))
211 }
212 }
213}
214
215#[cfg(feature = "app-fleamarketbuyroot")]
216pub trait IFleaMarketBuyRootMethods: IFleaMarketBuyRoot {
217 #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::fleamarketbuyroot::FleaMarketBuyRoot_ReturnEventHandler, bool)` overload"]
218 fn create(
219 self,
220 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
221 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
222 return_event_handler: impl ::core::convert::Into<crate::app::fleamarketbuyroot::FleaMarketBuyRoot_ReturnEventHandler>,
223 is_enabled_voice: impl ::core::convert::Into<bool>,
224 ) -> () {
225 unsafe {
226 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x260d1d0usize)as*mut u8,();
228(FleaMarketBuyRoot)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::fleamarketbuyroot::FleaMarketBuyRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler),(bool)::core::convert::Into::into(is_enabled_voice))
229 }
230 }
231 #[doc = "`.ctor()` overload"]
232 fn ctor(self) -> () {
233 unsafe {
234 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x260d630usize)as*mut u8,();
236(FleaMarketBuyRoot)__receiver)
237 }
238 }
239 #[doc = "`OnSelectMenuItem(crate::app::unititem::UnitItem)` overload"]
240 fn on_select_menu_item(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
241 unsafe {
242 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 ::unity::il2cpp_call!((::unity::module_base()+0x260d640usize)as*mut u8,();
244(FleaMarketBuyRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
245 }
246 }
247 #[doc = "`OnDecideMenuItem(crate::app::itemdata::ItemData)` overload"]
248 fn on_decide_menu_item(self, item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> bool {
249 unsafe {
250 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x260d700usize)as*mut u8,bool;
252(FleaMarketBuyRoot)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data))
253 }
254 }
255 #[doc = "`OnYesToBuy()` overload"]
256 fn on_yes_to_buy(self) -> () {
257 unsafe {
258 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 ::unity::il2cpp_call!((::unity::module_base()+0x260d850usize)as*mut u8,();
260(FleaMarketBuyRoot)__receiver)
261 }
262 }
263 #[doc = "`OnDecideToSendItem(bool, i32)` overload"]
264 fn on_decide_to_send_item(
265 self,
266 is_selecting_unit_item: impl ::core::convert::Into<bool>,
267 unit_item_index: impl ::core::convert::Into<i32>,
268 ) -> () {
269 unsafe {
270 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 ::unity::il2cpp_call!((::unity::module_base()+0x260de20usize)as*mut u8,();
272(FleaMarketBuyRoot)__receiver,(bool)::core::convert::Into::into(is_selecting_unit_item),(i32)::core::convert::Into::into(unit_item_index))
273 }
274 }
275 #[doc = "`OnCancelToSendItem()` overload"]
276 fn on_cancel_to_send_item(self) -> () {
277 unsafe {
278 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279 ::unity::il2cpp_call!((::unity::module_base()+0x260e020usize)as*mut u8,();
280(FleaMarketBuyRoot)__receiver)
281 }
282 }
283 #[doc = "`OnDecidelToDiscardItem(bool, i32)` overload"]
284 fn on_decidel_to_discard_item(
285 self,
286 transporter_is_selected: impl ::core::convert::Into<bool>,
287 transporter_item_index: impl ::core::convert::Into<i32>,
288 ) -> () {
289 unsafe {
290 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291 ::unity::il2cpp_call!((::unity::module_base()+0x260e110usize)as*mut u8,();
292(FleaMarketBuyRoot)__receiver,(bool)::core::convert::Into::into(transporter_is_selected),(i32)::core::convert::Into::into(transporter_item_index))
293 }
294 }
295 #[doc = "`OnCancelToDiscardItem()` overload"]
296 fn on_cancel_to_discard_item(self) -> () {
297 unsafe {
298 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299 ::unity::il2cpp_call!((::unity::module_base()+0x260e220usize)as*mut u8,();
300(FleaMarketBuyRoot)__receiver)
301 }
302 }
303 #[doc = "`OnBuy()` overload"]
304 fn on_buy(self) -> () {
305 unsafe {
306 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 ::unity::il2cpp_call!((::unity::module_base()+0x260dc10usize)as*mut u8,();
308(FleaMarketBuyRoot)__receiver)
309 }
310 }
311 #[doc = "`OnRequestClose()` overload"]
312 fn on_request_close(self) -> () {
313 unsafe {
314 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x260e3e0usize)as*mut u8,();
316(FleaMarketBuyRoot)__receiver)
317 }
318 }
319 #[doc = "`Close()` overload"]
320 fn close(self) -> () {
321 unsafe {
322 let __receiver = <FleaMarketBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 ::unity::il2cpp_call!((::unity::module_base()+0x260e3f0usize)as*mut u8,();
324(FleaMarketBuyRoot)__receiver)
325 }
326 }
327}
328
329#[cfg(feature = "app-fleamarketbuyroot")]
330impl<__T: IFleaMarketBuyRoot> IFleaMarketBuyRootMethods for __T {}
331
332#[cfg(feature = "app-fleamarketbuyroot")]
333impl FleaMarketBuyRoot {
334 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
336 }
337
338 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
340 }
341
342 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
344 }
345
346 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
348 }
349
350 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
352 }
353
354 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
356 }
357
358 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
360 }
361
362 pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
364 }
365
366 pub fn on_decide_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
368 }
369
370 pub fn on_yes_to_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
372 }
373
374 pub fn on_decide_to_send_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
376 }
377
378 pub fn on_cancel_to_send_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
380 }
381
382 pub fn on_decidel_to_discard_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
384 }
385
386 pub fn on_cancel_to_discard_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
388 }
389
390 pub fn on_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
392 }
393
394 pub fn on_request_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
396 }
397
398 pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
400 }
401}
402
403#[cfg(feature = "app-fleamarketbuyroot")]
404impl FleaMarketBuyRoot {
405 #[doc = "`.ctor()` — no args"]
406 pub fn new() -> Self {
407 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
408 panic!(
409 "{}
410::{}
411 failed to instantiate",
412 ::core::stringify!(FleaMarketBuyRoot),
413 ::core::stringify!(new),
414 )
415 });
416 <Self as IFleaMarketBuyRootMethods>::ctor(this);
417 this
418 }
419}
420
421#[cfg(feature = "app-fleamarketbuyroot")]
422#[doc(hidden)]
423pub mod prelude {
424 pub use super::{
425 FleaMarketBuyRoot, FleaMarketBuyRoot_ReturnEventHandler, IFleaMarketBuyRoot, IFleaMarketBuyRootMethods,
426 IFleaMarketBuyRoot_ReturnEventHandler, IFleaMarketBuyRoot_ReturnEventHandlerMethods,
427 };
428 #[cfg(feature = "system-delegate")]
429 pub use crate::system::delegate::IDelegateMethods;
430 #[cfg(feature = "system-multicastdelegate")]
431 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
432 #[cfg(feature = "system-object")]
433 pub use crate::system::object::IObjectMethods;
434 #[cfg(feature = "unity_engine-behaviour")]
435 pub use crate::unity_engine::behaviour::IBehaviourMethods;
436 #[cfg(feature = "unity_engine-component")]
437 pub use crate::unity_engine::component::IComponentMethods;
438 #[cfg(feature = "unity_engine-monobehaviour")]
439 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
440 #[cfg(feature = "unity_engine-object_2")]
441 pub use crate::unity_engine::object_2::IObject_2Methods;
442 pub use crate::{
443 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
444 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
445 };
446}