Skip to main content

engage/generated/app/
gmaputil.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gmaputil-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/gmaputil/GmapUtil.md"))]
11    #[::unity::class(namespace = "App", name = "GmapUtil")]
12    #[parent(crate::system::object::Object)]
13    pub struct GmapUtil {
14        #[static_field]
15        #[rename(name = "RareGoldKey")]
16        pub rare_gold_key: ::unity::Il2CppString,
17        #[static_field]
18        #[rename(name = "RareExpKey")]
19        pub rare_exp_key: ::unity::Il2CppString,
20    }
21}
22
23#[cfg(feature = "app-gmaputil-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-gmaputil")]
27impl GmapUtil {
28    #[doc = "`get_SortiableCount()` overload"]
29    pub fn get_sortiable_count() -> i32 {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2b4a330usize)as*mut u8,i32;
32            )
33        }
34    }
35
36    #[doc = "`set_SortiableCount(i32)` overload"]
37    pub fn set_sortiable_count(value: impl ::core::convert::Into<i32>) -> () {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x2b4a3a0usize)as*mut u8,();
40(i32)::core::convert::Into::into(value))
41        }
42    }
43
44    #[doc = "`GetEncountRank(crate::app::gmapspot::GmapSpot)` overload"]
45    pub fn get_encount_rank(gmap_spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>) -> i32 {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2b46ca0usize)as*mut u8,i32;
48(crate::app::gmapspot::GmapSpot)::core::convert::Into::into(gmap_spot))
49        }
50    }
51
52    #[doc = "`GetSortieNum(crate::app::gmapspot::GmapSpot)` overload"]
53    pub fn get_sortie_num(
54        gmap_spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>,
55    ) -> crate::system::collections::generic::list_1::List_1<i32> {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x2b4a410usize)as*mut u8,crate::system::collections::generic::list_1::List_1<i32> ;
58(crate::app::gmapspot::GmapSpot)::core::convert::Into::into(gmap_spot))
59        }
60    }
61
62    #[doc = "`CalcEncountRank(i32, bool)` overload"]
63    pub fn calc_encount_rank(sortie_count: impl ::core::convert::Into<i32>, is_dlc_mode: impl ::core::convert::Into<bool>) -> i32 {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x2b4a6e0usize)as*mut u8,i32;
66(i32)::core::convert::Into::into(sortie_count),(bool)::core::convert::Into::into(is_dlc_mode))
67        }
68    }
69
70    #[doc = "`GetAverageLevel(crate::app::difficulty::Difficulty, i32)` overload"]
71    pub fn get_average_level(
72        difficulty: impl ::core::convert::Into<crate::app::difficulty::Difficulty>,
73        sortie_count: impl ::core::convert::Into<i32>,
74    ) -> i32 {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x2b4afa0usize)as*mut u8,i32;
77(crate::app::difficulty::Difficulty)::core::convert::Into::into(difficulty),(i32)::core::convert::Into::into(sortie_count))
78        }
79    }
80
81    #[doc = "`GetVandreLevel(*mutcrate::app::unit::Unit)` overload"]
82    pub fn get_vandre_level() -> (i32, crate::app::unit::Unit) {
83        unsafe {
84            let mut __out_0 = ::core::mem::MaybeUninit::<crate::app::unit::Unit>::uninit();
85            let __ret = {
86                ::unity::il2cpp_call!((::unity::module_base()+0x2b4ae70usize)as*mut u8,i32;
87(*mut crate::app::unit::Unit)__out_0.as_mut_ptr())
88            };
89            (__ret, __out_0.assume_init())
90        }
91    }
92
93    #[doc = "`ReductDispos(crate::system::collections::generic::list_1::List_1<crate::app::disposdata::DisposData>)` overload"]
94    pub fn reduct_dispos(
95        dispos_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::disposdata::DisposData>>,
96    ) -> crate::system::collections::generic::list_1::List_1<crate::app::disposdata::DisposData> {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x2b4b040usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::disposdata::DisposData> ;
99(crate::system::collections::generic::list_1::List_1<crate::app::disposdata::DisposData>)::core::convert::Into::into(dispos_list))
100        }
101    }
102
103    #[doc = "`GetEquipableWeapons(crate::app::jobdata::JobData, *mutcrate::app::weaponmask::WeaponMask)` overload"]
104    pub fn get_equipable_weapons(
105        job: impl ::core::convert::Into<crate::app::jobdata::JobData>,
106    ) -> (::unity::Array<crate::app::itemdata::ItemData_Kinds>, crate::app::weaponmask::WeaponMask) {
107        unsafe {
108            let mut __out_0 = ::core::mem::MaybeUninit::<crate::app::weaponmask::WeaponMask>::uninit();
109            let __ret = {
110                ::unity::il2cpp_call!((::unity::module_base()+0x2b4b300usize)as*mut u8, ::unity::Array<crate::app::itemdata::ItemData_Kinds> ;
111(crate::app::jobdata::JobData)::core::convert::Into::into(job),(*mut crate::app::weaponmask::WeaponMask)__out_0.as_mut_ptr())
112            };
113            (__ret, __out_0.assume_init())
114        }
115    }
116
117    #[doc = "`GetDownLevelWeapon(crate::app::itemdata::ItemData, crate::app::weaponlevel::WeaponLevel_Kind)` overload"]
118    pub fn get_down_level_weapon(
119        item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
120        level: impl ::core::convert::Into<crate::app::weaponlevel::WeaponLevel_Kind>,
121    ) -> crate::app::itemdata::ItemData {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x2b4b9d0usize)as*mut u8,crate::app::itemdata::ItemData;
124(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::weaponlevel::WeaponLevel_Kind)::core::convert::Into::into(level))
125        }
126    }
127
128    #[doc = "`RegistRareDisposCount()` overload"]
129    pub fn regist_rare_dispos_count() -> () {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x2b40ef0usize)as*mut u8,();
132            )
133        }
134    }
135
136    #[doc = "`GetRareExpDisposCount()` overload"]
137    pub fn get_rare_exp_dispos_count() -> i32 {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x2b4be40usize)as*mut u8,i32;
140            )
141        }
142    }
143
144    #[doc = "`GetRareGoldDisposCount()` overload"]
145    pub fn get_rare_gold_dispos_count() -> i32 {
146        unsafe {
147            ::unity::il2cpp_call!((::unity::module_base()+0x2b4bff0usize)as*mut u8,i32;
148            )
149        }
150    }
151
152    #[doc = "`WeaponMaskToArray(crate::app::weaponmask::WeaponMask)` overload"]
153    pub fn weapon_mask_to_array(
154        mask: impl ::core::convert::Into<crate::app::weaponmask::WeaponMask>,
155    ) -> ::unity::Array<crate::app::itemdata::ItemData_Kinds> {
156        unsafe {
157            ::unity::il2cpp_call!((::unity::module_base()+0x2b4b7c0usize)as*mut u8, ::unity::Array<crate::app::itemdata::ItemData_Kinds> ;
158(crate::app::weaponmask::WeaponMask)::core::convert::Into::into(mask))
159        }
160    }
161
162    #[doc = "`WeaponArrayToMask(::unity::Array<crate::app::itemdata::ItemData_Kinds>)` overload"]
163    pub fn weapon_array_to_mask(
164        kinds: impl ::core::convert::Into<::unity::Array<crate::app::itemdata::ItemData_Kinds>>,
165    ) -> crate::app::weaponmask::WeaponMask {
166        unsafe {
167            ::unity::il2cpp_call!((::unity::module_base()+0x2b4b640usize)as*mut u8,crate::app::weaponmask::WeaponMask;
168(::unity::Array<crate::app::itemdata::ItemData_Kinds>)::core::convert::Into::into(kinds))
169        }
170    }
171
172    #[doc = "`IsAppearGradlon()` overload"]
173    pub fn is_appear_gradlon() -> bool {
174        unsafe {
175            ::unity::il2cpp_call!((::unity::module_base()+0x2b4c1a0usize)as*mut u8,bool;
176            )
177        }
178    }
179
180    #[doc = "`UpdateVisibleGradlon()` overload"]
181    pub fn update_visible_gradlon() -> () {
182        unsafe {
183            ::unity::il2cpp_call!((::unity::module_base()+0x2b3c520usize)as*mut u8,();
184            )
185        }
186    }
187
188    #[doc = "`.cctor()` overload"]
189    pub fn cctor() -> () {
190        unsafe {
191            ::unity::il2cpp_call!((::unity::module_base()+0x2b4c320usize)as*mut u8,();
192            )
193        }
194    }
195}
196
197#[cfg(feature = "app-gmaputil")]
198pub trait IGmapUtilMethods: IGmapUtil {
199    #[doc = "`.ctor()` overload"]
200    fn ctor(self) -> () {
201        unsafe {
202            let __receiver = <GmapUtil as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x2b4c310usize)as*mut u8,();
204(GmapUtil)__receiver)
205        }
206    }
207}
208
209#[cfg(feature = "app-gmaputil")]
210impl<__T: IGmapUtil> IGmapUtilMethods for __T {}
211
212#[cfg(feature = "app-gmaputil")]
213impl GmapUtil {
214    pub fn get_sortiable_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
216    }
217
218    pub fn set_sortiable_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
220    }
221
222    pub fn get_encount_rank_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
224    }
225
226    pub fn get_sortie_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
228    }
229
230    pub fn calc_encount_rank_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
232    }
233
234    pub fn get_average_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
236    }
237
238    pub fn get_vandre_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
240    }
241
242    pub fn reduct_dispos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
244    }
245
246    pub fn get_equipable_weapons_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
248    }
249
250    pub fn get_down_level_weapon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
252    }
253
254    pub fn regist_rare_dispos_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
256    }
257
258    pub fn get_rare_exp_dispos_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
260    }
261
262    pub fn get_rare_gold_dispos_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
264    }
265
266    pub fn weapon_mask_to_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
268    }
269
270    pub fn weapon_array_to_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
272    }
273
274    pub fn is_appear_gradlon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
276    }
277
278    pub fn update_visible_gradlon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
280    }
281
282    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
284    }
285
286    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
288    }
289}
290
291#[cfg(feature = "app-gmaputil")]
292impl GmapUtil {
293    #[doc = "`.ctor()` — no args"]
294    pub fn new() -> Self {
295        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
296            panic!(
297                "{}
298::{}
299 failed to instantiate",
300                ::core::stringify!(GmapUtil),
301                ::core::stringify!(new),
302            )
303        });
304        <Self as IGmapUtilMethods>::ctor(this);
305        this
306    }
307}
308
309#[cfg(feature = "app-gmaputil")]
310#[doc(hidden)]
311pub mod prelude {
312    pub use super::{GmapUtil, IGmapUtil, IGmapUtilMethods};
313    pub use crate::system::object::IObject;
314    #[cfg(feature = "system-object")]
315    pub use crate::system::object::IObjectMethods;
316}