Skip to main content

engage/generated/app/
transporter.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-transporter-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/transporter/Transporter.md"))]
11    #[::unity::class(namespace = "App", name = "Transporter")]
12    #[parent(crate::system::object::Object)]
13    pub struct Transporter {
14        #[static_field]
15        #[rename(name = "MaxOld")]
16        pub max_old: i32,
17        #[static_field]
18        #[rename(name = "MaxData")]
19        pub max_data: i32,
20        #[static_field]
21        #[rename(name = "Version")]
22        pub version: i32,
23        #[static_field]
24        #[rename(name = "s_Data")]
25        pub s_data: ::unity::Array<crate::app::transporter::Transporter_Data>,
26    }
27
28    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/transporter/Transporter_Data.md"))]
29    #[::unity::class(namespace = "App", name = "Transporter.Data")]
30    #[parent(crate::system::object::Object)]
31    pub struct Transporter_Data {
32        #[static_field]
33        #[rename(name = "Version")]
34        pub version: i32,
35        #[offset(16)]
36        #[rename(name = "m_UnitItem")]
37        pub m_unit_item: crate::app::unititem::UnitItem,
38    }
39}
40
41#[cfg(feature = "app-transporter-types")]
42pub use __types::*;
43
44#[cfg(feature = "app-transporter")]
45impl Transporter {
46    #[doc = "`Initialize()` overload"]
47    pub fn initialize() -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x22a1060usize)as*mut u8,();
50            )
51        }
52    }
53
54    #[doc = "`Reset()` overload"]
55    pub fn reset() -> () {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x22a1180usize)as*mut u8,();
58            )
59        }
60    }
61
62    #[doc = "`IsAvailable()` overload"]
63    pub fn is_available() -> bool {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x22a12d0usize)as*mut u8,bool;
66            )
67        }
68    }
69
70    #[doc = "`Get(i32)` overload"]
71    pub fn get(index: impl ::core::convert::Into<i32>) -> crate::app::transporter::Transporter_Data {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x22a13d0usize)as*mut u8,crate::app::transporter::Transporter_Data;
74(i32)::core::convert::Into::into(index))
75        }
76    }
77
78    #[doc = "`GetIndex(crate::app::unititem::UnitItem)` overload"]
79    pub fn get_index(unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> i32 {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x22a1450usize)as*mut u8,i32;
82(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
83        }
84    }
85
86    #[doc = "`CanAdd()` overload"]
87    pub fn can_add() -> bool {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x22a1570usize)as*mut u8,bool;
90            )
91        }
92    }
93
94    #[doc = "`TryGetLowestItemIndex(*muti32, *mutu64)` overload"]
95    pub fn try_get_lowest_item_index() -> (bool, i32, u64) {
96        unsafe {
97            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
98            let mut __out_1 = ::core::mem::MaybeUninit::<u64>::uninit();
99            let __ret = {
100                ::unity::il2cpp_call!((::unity::module_base()+0x22a1610usize)as*mut u8,bool;
101(*mut i32)__out_0.as_mut_ptr(),(*mut u64)__out_1.as_mut_ptr())
102            };
103            (__ret, __out_0.assume_init(), __out_1.assume_init())
104        }
105    }
106
107    #[doc = "`GetEmptyIndex()` overload"]
108    pub fn get_empty_index() -> i32 {
109        unsafe {
110            ::unity::il2cpp_call!((::unity::module_base()+0x22a1990usize)as*mut u8,i32;
111            )
112        }
113    }
114
115    #[doc = "`Discard(crate::app::unititem::UnitItem)` overload"]
116    pub fn discard(unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
117        unsafe {
118            ::unity::il2cpp_call!((::unity::module_base()+0x22a1a30usize)as*mut u8,();
119(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
120        }
121    }
122
123    #[doc = "`Add(crate::app::unititem::UnitItem)` overload"]
124    pub fn add(unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> i32 {
125        unsafe {
126            ::unity::il2cpp_call!((::unity::module_base()+0x22a1b70usize)as*mut u8,i32;
127(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
128        }
129    }
130
131    #[doc = "`Add(crate::app::itemdata::ItemData)` overload"]
132    pub fn add_2(item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> i32 {
133        unsafe {
134            ::unity::il2cpp_call!((::unity::module_base()+0x22a2040usize)as*mut u8,i32;
135(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data))
136        }
137    }
138
139    #[doc = "`Sub(i32)` overload"]
140    pub fn sub(index: impl ::core::convert::Into<i32>) -> () {
141        unsafe {
142            ::unity::il2cpp_call!((::unity::module_base()+0x22a20c0usize)as*mut u8,();
143(i32)::core::convert::Into::into(index))
144        }
145    }
146
147    #[doc = "`Delete(i32)` overload"]
148    pub fn delete(index: impl ::core::convert::Into<i32>) -> () {
149        unsafe {
150            ::unity::il2cpp_call!((::unity::module_base()+0x22a2260usize)as*mut u8,();
151(i32)::core::convert::Into::into(index))
152        }
153    }
154
155    #[doc = "`Clear()` overload"]
156    pub fn clear() -> () {
157        unsafe {
158            ::unity::il2cpp_call!((::unity::module_base()+0x22a2390usize)as*mut u8,();
159            )
160        }
161    }
162
163    #[doc = "`GetCount()` overload"]
164    pub fn get_count() -> i32 {
165        unsafe {
166            ::unity::il2cpp_call!((::unity::module_base()+0x22a24e0usize)as*mut u8,i32;
167            )
168        }
169    }
170
171    #[doc = "`DeleteItem(crate::app::itemdata::ItemData)` overload"]
172    pub fn delete_item(data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
173        unsafe {
174            ::unity::il2cpp_call!((::unity::module_base()+0x22a2570usize)as*mut u8,();
175(crate::app::itemdata::ItemData)::core::convert::Into::into(data))
176        }
177    }
178
179    #[doc = "`GetItemCount(crate::app::itemdata::ItemData)` overload"]
180    pub fn get_item_count(data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> i32 {
181        unsafe {
182            ::unity::il2cpp_call!((::unity::module_base()+0x22a2630usize)as*mut u8,i32;
183(crate::app::itemdata::ItemData)::core::convert::Into::into(data))
184        }
185    }
186
187    #[doc = "`GetTypeItemCount(crate::app::itemdata::ItemData_UseTypes)` overload"]
188    pub fn get_type_item_count(r#type: impl ::core::convert::Into<crate::app::itemdata::ItemData_UseTypes>) -> i32 {
189        unsafe {
190            ::unity::il2cpp_call!((::unity::module_base()+0x22a26d0usize)as*mut u8,i32;
191(crate::app::itemdata::ItemData_UseTypes)::core::convert::Into::into(r#type))
192        }
193    }
194
195    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
196    pub fn serialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
197        unsafe {
198            ::unity::il2cpp_call!((::unity::module_base()+0x22a2780usize)as*mut u8,();
199(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
200        }
201    }
202
203    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
204    pub fn deserialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
205        unsafe {
206            ::unity::il2cpp_call!((::unity::module_base()+0x22a2840usize)as*mut u8,();
207(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
208        }
209    }
210
211    #[doc = "`IsRare(crate::app::unititem::UnitItem)` overload"]
212    pub fn is_rare(unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> bool {
213        unsafe {
214            ::unity::il2cpp_call!((::unity::module_base()+0x22a1840usize)as*mut u8,bool;
215(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
216        }
217    }
218
219    #[doc = "`CalcWorth(crate::app::unititem::UnitItem)` overload"]
220    pub fn calc_worth(unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> u64 {
221        unsafe {
222            ::unity::il2cpp_call!((::unity::module_base()+0x22a18b0usize)as*mut u8,u64;
223(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
224        }
225    }
226}
227
228#[cfg(feature = "app-transporter")]
229pub trait ITransporterMethods: ITransporter {
230    #[doc = "`.ctor()` overload"]
231    fn ctor(self) -> () {
232        unsafe {
233            let __receiver = <Transporter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x22a2c00usize)as*mut u8,();
235(Transporter)__receiver)
236        }
237    }
238}
239
240#[cfg(feature = "app-transporter")]
241impl<__T: ITransporter> ITransporterMethods for __T {}
242
243#[cfg(feature = "app-transporter")]
244impl Transporter {
245    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
247    }
248
249    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
251    }
252
253    pub fn is_available_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
255    }
256
257    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
259    }
260
261    pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
263    }
264
265    pub fn can_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
267    }
268
269    pub fn try_get_lowest_item_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
271    }
272
273    pub fn get_empty_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
275    }
276
277    pub fn discard_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
279    }
280
281    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
283    }
284
285    pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
287    }
288
289    pub fn sub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
291    }
292
293    pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
295    }
296
297    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
299    }
300
301    pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
303    }
304
305    pub fn delete_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
307    }
308
309    pub fn get_item_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
311    }
312
313    pub fn get_type_item_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
315    }
316
317    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
319    }
320
321    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
323    }
324
325    pub fn is_rare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
327    }
328
329    pub fn calc_worth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
331    }
332
333    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
335    }
336}
337
338#[cfg(feature = "app-transporter")]
339impl Transporter {
340    #[doc = "`.ctor()` — no args"]
341    pub fn new() -> Self {
342        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
343            panic!(
344                "{}
345::{}
346 failed to instantiate",
347                ::core::stringify!(Transporter),
348                ::core::stringify!(new),
349            )
350        });
351        <Self as ITransporterMethods>::ctor(this);
352        this
353    }
354}
355
356#[cfg(feature = "app-transporter")]
357pub trait ITransporter_DataMethods: ITransporter_Data {
358    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
359    fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
360        unsafe {
361            let __receiver = <Transporter_Data as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
362            ::unity::il2cpp_call!((::unity::module_base()+0x1b3f5a0usize)as*mut u8,();
363(Transporter_Data)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
364        }
365    }
366    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
367    fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
368        unsafe {
369            let __receiver = <Transporter_Data as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
370            ::unity::il2cpp_call!((::unity::module_base()+0x1b3f5e0usize)as*mut u8,();
371(Transporter_Data)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
372        }
373    }
374    #[doc = "`get_UnitItem()` overload"]
375    fn get_unit_item(self) -> crate::app::unititem::UnitItem {
376        unsafe {
377            let __receiver = <Transporter_Data as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
378            ::unity::il2cpp_call!((::unity::module_base()+0x1b3f6f0usize)as*mut u8,crate::app::unititem::UnitItem;
379(Transporter_Data)__receiver)
380        }
381    }
382    #[doc = "`.ctor()` overload"]
383    fn ctor(self) -> () {
384        unsafe {
385            let __receiver = <Transporter_Data as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
386            ::unity::il2cpp_call!((::unity::module_base()+0x1b3f700usize)as*mut u8,();
387(Transporter_Data)__receiver)
388        }
389    }
390}
391
392#[cfg(feature = "app-transporter")]
393impl<__T: ITransporter_Data> ITransporter_DataMethods for __T {}
394
395#[cfg(feature = "app-transporter")]
396impl Transporter_Data {
397    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
399    }
400
401    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
403    }
404
405    pub fn get_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
407    }
408
409    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
411    }
412}
413
414#[cfg(feature = "app-transporter")]
415impl Transporter_Data {
416    #[doc = "`.ctor()` — no args"]
417    pub fn new() -> Self {
418        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
419            panic!(
420                "{}
421::{}
422 failed to instantiate",
423                ::core::stringify!(Transporter_Data),
424                ::core::stringify!(new),
425            )
426        });
427        <Self as ITransporter_DataMethods>::ctor(this);
428        this
429    }
430}
431
432#[cfg(feature = "app-transporter")]
433#[doc(hidden)]
434pub mod prelude {
435    pub use super::{ITransporter, ITransporterMethods, ITransporter_Data, ITransporter_DataMethods, Transporter, Transporter_Data};
436    pub use crate::system::object::IObject;
437    #[cfg(feature = "system-object")]
438    pub use crate::system::object::IObjectMethods;
439}