engage/generated/app/
relaysortie.rs1#[cfg(feature = "app-relaysortie-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/relaysortie/RelaySortie.md"))]
11 #[::unity::class(namespace = "App", name = "RelaySortie")]
12 #[parent(crate::system::object::Object)]
13 pub struct RelaySortie {
14 #[static_field]
15 #[rename(name = "NearbyFriendsThreshold")]
16 pub nearby_friends_threshold: i32,
17 #[offset(16)]
18 #[rename(name = "m_MaxTotalCount")]
19 pub m_max_total_count: i32,
20 #[offset(20)]
21 #[rename(name = "m_ReqMyCount")]
22 pub m_req_my_count: i32,
23 #[offset(24)]
24 #[rename(name = "m_ReqTotalCountNoClamp")]
25 pub m_req_total_count_no_clamp: i32,
26 #[offset(28)]
27 #[rename(name = "m_ReqTotalCount")]
28 pub m_req_total_count: i32,
29 #[offset(32)]
30 #[rename(name = "m_TotalCount")]
31 pub m_total_count: i32,
32 #[offset(36)]
33 #[rename(name = "m_MyCount")]
34 pub m_my_count: i32,
35 #[offset(40)]
36 #[rename(name = "m_OtherCount")]
37 pub m_other_count: i32,
38 #[offset(48)]
39 #[rename(name = "m_OtherPids")]
40 pub m_other_pids: crate::system::collections::generic::hashset_1::HashSet_1<::unity::Il2CppString>,
41 #[offset(56)]
42 #[rename(name = "m_OtherPos")]
43 pub m_other_pos: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::app::mappos::MapPos>,
44 #[offset(64)]
45 #[rename(name = "m_NearbyFriendsScores")]
46 pub m_nearby_friends_scores: ::unity::Array<i32>,
47 }
48}
49
50#[cfg(feature = "app-relaysortie-types")]
51pub use __types::*;
52
53#[cfg(feature = "app-relaysortie")]
54pub trait IRelaySortieMethods: IRelaySortie {
55 #[doc = "`Initialize()` overload"]
56 fn initialize(self) -> () {
57 unsafe {
58 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x200b0e0usize)as*mut u8,();
60(RelaySortie)__receiver)
61 }
62 }
63 #[doc = "`Setup()` overload"]
64 fn setup(self) -> () {
65 unsafe {
66 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x200b200usize)as*mut u8,();
68(RelaySortie)__receiver)
69 }
70 }
71 #[doc = "`CountUnits()` overload"]
72 fn count_units(self) -> () {
73 unsafe {
74 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x200b700usize)as*mut u8,();
76(RelaySortie)__receiver)
77 }
78 }
79 #[doc = "`SetupUnits()` overload"]
80 fn setup_units(self) -> () {
81 unsafe {
82 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x200b820usize)as*mut u8,();
84(RelaySortie)__receiver)
85 }
86 }
87 #[doc = "`CreateSortiePosition()` overload"]
88 fn create_sortie_position(self) -> () {
89 unsafe {
90 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x200b300usize)as*mut u8,();
92(RelaySortie)__receiver)
93 }
94 }
95 #[doc = "`PrerelocationUnits()` overload"]
96 fn prerelocation_units(self) -> () {
97 unsafe {
98 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x200ba00usize)as*mut u8,();
100(RelaySortie)__receiver)
101 }
102 }
103 #[doc = "`RelocationUnitForTakeOver(crate::app::unit::Unit)` overload"]
104 fn relocation_unit_for_take_over(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
105 unsafe {
106 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x200bae0usize)as*mut u8,();
108(RelaySortie)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
109 }
110 }
111 #[doc = "`FindEmptySortiePosition(*muti32, *muti32)` overload"]
112 fn find_empty_sortie_position(self) -> (bool, i32, i32) {
113 unsafe {
114 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
116 let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
117 let __ret = {
118 ::unity::il2cpp_call!((::unity::module_base()+0x200be80usize)as*mut u8,bool;
119(RelaySortie)__receiver,(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr())
120 };
121 (__ret, __out_0.assume_init(), __out_1.assume_init())
122 }
123 }
124 #[doc = "`CountEmptySortiePosition()` overload"]
125 fn count_empty_sortie_position(self) -> i32 {
126 unsafe {
127 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x200b590usize)as*mut u8,i32;
129(RelaySortie)__receiver)
130 }
131 }
132 #[doc = "`FindSortiePositionNearbyFriends(*muti32, *muti32)` overload"]
133 fn find_sortie_position_nearby_friends(self) -> (bool, i32, i32) {
134 unsafe {
135 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
137 let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
138 let __ret = {
139 ::unity::il2cpp_call!((::unity::module_base()+0x200c020usize)as*mut u8,bool;
140(RelaySortie)__receiver,(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr())
141 };
142 (__ret, __out_0.assume_init(), __out_1.assume_init())
143 }
144 }
145 #[doc = "`IsIgnore(crate::app::unit::Unit)` overload"]
146 fn is_ignore(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
147 unsafe {
148 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x200b1f0usize)as*mut u8,bool;
150(RelaySortie)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
151 }
152 }
153 #[doc = "`IsIgnoreForTroop(crate::app::unit::Unit, bool)` overload"]
154 fn is_ignore_for_troop(
155 self,
156 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
157 is_in_battle_map: impl ::core::convert::Into<bool>,
158 ) -> bool {
159 unsafe {
160 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x200c280usize)as*mut u8,bool;
162(RelaySortie)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(bool)::core::convert::Into::into(is_in_battle_map))
163 }
164 }
165 #[doc = "`CanSortie(crate::app::unit::Unit)` overload"]
166 fn can_sortie(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
167 unsafe {
168 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!((::unity::module_base()+0x200c300usize)as*mut u8,bool;
170(RelaySortie)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
171 }
172 }
173 #[doc = "`CanToggle(crate::app::unit::Unit)` overload"]
174 fn can_toggle(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
175 unsafe {
176 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x200c380usize)as*mut u8,bool;
178(RelaySortie)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
179 }
180 }
181 #[doc = "`Toggle(crate::app::unit::Unit)` overload"]
182 fn toggle(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
183 unsafe {
184 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x200c500usize)as*mut u8,();
186(RelaySortie)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
187 }
188 }
189 #[doc = "`CanStartBattle()` overload"]
190 fn can_start_battle(self) -> bool {
191 unsafe {
192 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193 ::unity::il2cpp_call!((::unity::module_base()+0x200c650usize)as*mut u8,bool;
194(RelaySortie)__receiver)
195 }
196 }
197 #[doc = "`CanBackTo()` overload"]
198 fn can_back_to(self) -> bool {
199 unsafe {
200 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201 ::unity::il2cpp_call!((::unity::module_base()+0x200c660usize)as*mut u8,bool;
202(RelaySortie)__receiver)
203 }
204 }
205 #[doc = "`get_MaxTotalCount()` overload"]
206 fn get_max_total_count(self) -> i32 {
207 unsafe {
208 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209 ::unity::il2cpp_call!((::unity::module_base()+0x200c6e0usize)as*mut u8,i32;
210(RelaySortie)__receiver)
211 }
212 }
213 #[doc = "`get_ReqMyCount()` overload"]
214 fn get_req_my_count(self) -> i32 {
215 unsafe {
216 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217 ::unity::il2cpp_call!((::unity::module_base()+0x200c6f0usize)as*mut u8,i32;
218(RelaySortie)__receiver)
219 }
220 }
221 #[doc = "`get_ReqTotalCountNoClamp()` overload"]
222 fn get_req_total_count_no_clamp(self) -> i32 {
223 unsafe {
224 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 ::unity::il2cpp_call!((::unity::module_base()+0x200c700usize)as*mut u8,i32;
226(RelaySortie)__receiver)
227 }
228 }
229 #[doc = "`get_ReqTotalCount()` overload"]
230 fn get_req_total_count(self) -> i32 {
231 unsafe {
232 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233 ::unity::il2cpp_call!((::unity::module_base()+0x200c710usize)as*mut u8,i32;
234(RelaySortie)__receiver)
235 }
236 }
237 #[doc = "`get_TotalCount()` overload"]
238 fn get_total_count(self) -> i32 {
239 unsafe {
240 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241 ::unity::il2cpp_call!((::unity::module_base()+0x200c720usize)as*mut u8,i32;
242(RelaySortie)__receiver)
243 }
244 }
245 #[doc = "`set_TotalCount(i32)` overload"]
246 fn set_total_count(self, value: impl ::core::convert::Into<i32>) -> () {
247 unsafe {
248 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249 ::unity::il2cpp_call!((::unity::module_base()+0x200c730usize)as*mut u8,();
250(RelaySortie)__receiver,(i32)::core::convert::Into::into(value))
251 }
252 }
253 #[doc = "`get_MyCount()` overload"]
254 fn get_my_count(self) -> i32 {
255 unsafe {
256 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257 ::unity::il2cpp_call!((::unity::module_base()+0x200c740usize)as*mut u8,i32;
258(RelaySortie)__receiver)
259 }
260 }
261 #[doc = "`set_MyCount(i32)` overload"]
262 fn set_my_count(self, value: impl ::core::convert::Into<i32>) -> () {
263 unsafe {
264 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265 ::unity::il2cpp_call!((::unity::module_base()+0x200c750usize)as*mut u8,();
266(RelaySortie)__receiver,(i32)::core::convert::Into::into(value))
267 }
268 }
269 #[doc = "`get_OtherCount()` overload"]
270 fn get_other_count(self) -> i32 {
271 unsafe {
272 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273 ::unity::il2cpp_call!((::unity::module_base()+0x200c760usize)as*mut u8,i32;
274(RelaySortie)__receiver)
275 }
276 }
277 #[doc = "`.ctor()` overload"]
278 fn ctor(self) -> () {
279 unsafe {
280 let __receiver = <RelaySortie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 ::unity::il2cpp_call!((::unity::module_base()+0x200c770usize)as*mut u8,();
282(RelaySortie)__receiver)
283 }
284 }
285}
286
287#[cfg(feature = "app-relaysortie")]
288impl<__T: IRelaySortie> IRelaySortieMethods for __T {}
289
290#[cfg(feature = "app-relaysortie")]
291impl RelaySortie {
292 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
294 }
295
296 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
298 }
299
300 pub fn count_units_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
302 }
303
304 pub fn setup_units_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
306 }
307
308 pub fn create_sortie_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
310 }
311
312 pub fn prerelocation_units_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
314 }
315
316 pub fn relocation_unit_for_take_over_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
318 }
319
320 pub fn find_empty_sortie_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
322 }
323
324 pub fn count_empty_sortie_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
326 }
327
328 pub fn find_sortie_position_nearby_friends_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
330 }
331
332 pub fn is_ignore_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
334 }
335
336 pub fn is_ignore_for_troop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
338 }
339
340 pub fn can_sortie_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
342 }
343
344 pub fn can_toggle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
346 }
347
348 pub fn toggle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
350 }
351
352 pub fn can_start_battle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
354 }
355
356 pub fn can_back_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
358 }
359
360 pub fn get_max_total_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
362 }
363
364 pub fn get_req_my_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
366 }
367
368 pub fn get_req_total_count_no_clamp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
370 }
371
372 pub fn get_req_total_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
374 }
375
376 pub fn get_total_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
378 }
379
380 pub fn set_total_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
382 }
383
384 pub fn get_my_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
386 }
387
388 pub fn set_my_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
390 }
391
392 pub fn get_other_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
394 }
395
396 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
398 }
399}
400
401#[cfg(feature = "app-relaysortie")]
402impl RelaySortie {
403 #[doc = "`.ctor()` — no args"]
404 pub fn new() -> Self {
405 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
406 panic!(
407 "{}
408::{}
409 failed to instantiate",
410 ::core::stringify!(RelaySortie),
411 ::core::stringify!(new),
412 )
413 });
414 <Self as IRelaySortieMethods>::ctor(this);
415 this
416 }
417}
418
419#[cfg(feature = "app-relaysortie")]
420#[doc(hidden)]
421pub mod prelude {
422 pub use super::{IRelaySortie, IRelaySortieMethods, RelaySortie};
423 pub use crate::system::object::IObject;
424 #[cfg(feature = "system-object")]
425 pub use crate::system::object::IObjectMethods;
426}