1#[cfg(feature = "app-mapsight-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapsight/MapSight.md"))]
14 #[::unity::class(namespace = "App", name = "MapSight")]
15 #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::mapsight::MapSight>)]
16 pub struct MapSight {
17 #[offset(32)]
18 #[rename(name = "m_ImagePlayer")]
19 pub m_image_player: crate::app::mapimagesight::MapImageSight,
20 #[offset(40)]
21 #[rename(name = "m_ImageEnemy")]
22 pub m_image_enemy: crate::app::mapimagesight::MapImageSight,
23 #[offset(48)]
24 #[rename(name = "m_ImageAlly")]
25 pub m_image_ally: crate::app::mapimagesight::MapImageSight,
26 #[offset(56)]
27 #[rename(name = "m_IsUsable")]
28 pub m_is_usable: bool,
29 }
30}
31
32#[cfg(feature = "app-mapsight-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-mapsight")]
36pub trait IMapSightMethods: IMapSight {
37 #[doc = "`get_IsUsable()` overload"]
38 fn get_is_usable(self) -> bool {
39 unsafe {
40 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x1f47050usize)as*mut u8,bool;
42(MapSight)__receiver)
43 }
44 }
45 #[doc = "`set_IsUsable(bool)` overload"]
46 fn set_is_usable(self, value: impl ::core::convert::Into<bool>) -> () {
47 unsafe {
48 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x1f47060usize)as*mut u8,();
50(MapSight)__receiver,(bool)::core::convert::Into::into(value))
51 }
52 }
53 #[doc = "`.ctor()` overload"]
54 fn ctor(self) -> () {
55 unsafe {
56 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x1f47070usize)as*mut u8,();
58(MapSight)__receiver)
59 }
60 }
61 #[doc = "`Setup(crate::app::chapterdata::ChapterData)` overload"]
62 fn setup(self, chapter: impl ::core::convert::Into<crate::app::chapterdata::ChapterData>) -> () {
63 unsafe {
64 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x1f47190usize)as*mut u8,();
66(MapSight)__receiver,(crate::app::chapterdata::ChapterData)::core::convert::Into::into(chapter))
67 }
68 }
69 #[doc = "`Update(crate::app::unit::Unit)` overload"]
70 fn update(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
71 unsafe {
72 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x1f471a0usize)as*mut u8,();
74(MapSight)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
75 }
76 }
77 #[doc = "`Update(crate::app::force::Force_Type)` overload"]
78 fn update_2(self, force_type: impl ::core::convert::Into<crate::app::force::Force_Type>) -> () {
79 unsafe {
80 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x1f2f650usize)as*mut u8,();
82(MapSight)__receiver,(crate::app::force::Force_Type)::core::convert::Into::into(force_type))
83 }
84 }
85 #[doc = "`UpdateAll()` overload"]
86 fn update_all(self) -> () {
87 unsafe {
88 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x1f35220usize)as*mut u8,();
90(MapSight)__receiver)
91 }
92 }
93 #[doc = "`UpdateProjection()` overload"]
94 fn update_projection(self) -> () {
95 unsafe {
96 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x1f47470usize)as*mut u8,();
98(MapSight)__receiver)
99 }
100 }
101 #[doc = "`UpdateUnit()` overload"]
102 fn update_unit(self) -> () {
103 unsafe {
104 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x1f47270usize)as*mut u8,();
106(MapSight)__receiver)
107 }
108 }
109 #[doc = "`IsIn(i32, i32)` overload"]
110 fn is_in(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
111 unsafe {
112 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x1f47740usize)as*mut u8,bool;
114(MapSight)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
115 }
116 }
117 #[doc = "`IsIn(i32, i32, crate::app::force::Force_Type)` overload"]
118 fn is_in_2(
119 self,
120 x: impl ::core::convert::Into<i32>,
121 z: impl ::core::convert::Into<i32>,
122 force_type: impl ::core::convert::Into<crate::app::force::Force_Type>,
123 ) -> bool {
124 unsafe {
125 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x1f47850usize)as*mut u8,bool;
127(MapSight)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::app::force::Force_Type)::core::convert::Into::into(force_type))
128 }
129 }
130 #[doc = "`IsOut(i32, i32)` overload"]
131 fn is_out(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
132 unsafe {
133 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x1f478e0usize)as*mut u8,bool;
135(MapSight)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
136 }
137 }
138 #[doc = "`IsOut(i32, i32, crate::app::force::Force_Type)` overload"]
139 fn is_out_2(
140 self,
141 x: impl ::core::convert::Into<i32>,
142 z: impl ::core::convert::Into<i32>,
143 force_type: impl ::core::convert::Into<crate::app::force::Force_Type>,
144 ) -> bool {
145 unsafe {
146 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x1f47900usize)as*mut u8,bool;
148(MapSight)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::app::force::Force_Type)::core::convert::Into::into(force_type))
149 }
150 }
151 #[doc = "`GetSightImage(crate::app::unit::Unit)` overload"]
152 fn get_sight_image(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> crate::app::mapimagesight::MapImageSight {
153 unsafe {
154 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x1f47990usize)as*mut u8,crate::app::mapimagesight::MapImageSight;
156(MapSight)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
157 }
158 }
159 #[doc = "`GetSightImage(crate::app::force::Force_Type)` overload"]
160 fn get_sight_image_2(self, force_type: impl ::core::convert::Into<crate::app::force::Force_Type>) -> crate::app::mapimagesight::MapImageSight {
161 unsafe {
162 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x1f47230usize)as*mut u8,crate::app::mapimagesight::MapImageSight;
164(MapSight)__receiver,(crate::app::force::Force_Type)::core::convert::Into::into(force_type))
165 }
166 }
167 #[doc = "`get_Version()` overload"]
168 fn get_version(self) -> i32 {
169 unsafe {
170 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 {
172 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
173 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
174 panic!(
175 "unity: virtual slot {}
176 out of range (vtable len {}
177) on the runtime class behind {}
178 (method `{}
179`)",
180 4usize,
181 __vt.len(),
182 <MapSight as ::unity::ClassIdentity>::NAME,
183 "get_Version",
184 )
185 });
186 let __inner: extern "C" fn(MapSight, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
187 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
188 __inner(__receiver, __mi)
189 }
190 }
191 }
192 #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
193 fn on_serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
194 unsafe {
195 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 {
197 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
198 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
199 panic!(
200 "unity: virtual slot {}
201 out of range (vtable len {}
202) on the runtime class behind {}
203 (method `{}
204`)",
205 11usize,
206 __vt.len(),
207 <MapSight as ::unity::ClassIdentity>::NAME,
208 "OnSerialize",
209 )
210 });
211 let __inner: extern "C" fn(MapSight, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
212 ::core::mem::transmute(__vi.method_ptr);
213 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
214 __inner(__receiver, ::core::convert::Into::into(stream), __mi)
215 }
216 }
217 }
218 #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
219 fn on_deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>, version: impl ::core::convert::Into<i32>) -> () {
220 unsafe {
221 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222 {
223 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
224 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
225 panic!(
226 "unity: virtual slot {}
227 out of range (vtable len {}
228) on the runtime class behind {}
229 (method `{}
230`)",
231 12usize,
232 __vt.len(),
233 <MapSight as ::unity::ClassIdentity>::NAME,
234 "OnDeserialize",
235 )
236 });
237 let __inner: extern "C" fn(MapSight, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
238 ::core::mem::transmute(__vi.method_ptr);
239 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
240 __inner(
241 __receiver,
242 ::core::convert::Into::into(stream),
243 ::core::convert::Into::into(version),
244 __mi,
245 )
246 }
247 }
248 }
249 #[doc = "`get_ImagePlayer()` overload"]
250 fn get_image_player(self) -> crate::app::mapimagesight::MapImageSight {
251 unsafe {
252 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x1f47a00usize)as*mut u8,crate::app::mapimagesight::MapImageSight;
254(MapSight)__receiver)
255 }
256 }
257 #[doc = "`get_ImageEnemy()` overload"]
258 fn get_image_enemy(self) -> crate::app::mapimagesight::MapImageSight {
259 unsafe {
260 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x1f47a10usize)as*mut u8,crate::app::mapimagesight::MapImageSight;
262(MapSight)__receiver)
263 }
264 }
265 #[doc = "`get_ImageAlly()` overload"]
266 fn get_image_ally(self) -> crate::app::mapimagesight::MapImageSight {
267 unsafe {
268 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x1f47a20usize)as*mut u8,crate::app::mapimagesight::MapImageSight;
270(MapSight)__receiver)
271 }
272 }
273 #[doc = "`GetViewImage()` overload"]
274 fn get_view_image(self) -> crate::app::mapimagesight::MapImageSight {
275 unsafe {
276 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 ::unity::il2cpp_call!((::unity::module_base()+0x1f475d0usize)as*mut u8,crate::app::mapimagesight::MapImageSight;
278(MapSight)__receiver)
279 }
280 }
281 #[doc = "`IsViewIn(i32, i32)` overload"]
282 fn is_view_in(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
283 unsafe {
284 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x1f47a30usize)as*mut u8,bool;
286(MapSight)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
287 }
288 }
289 #[doc = "`IsViewOut(i32, i32)` overload"]
290 fn is_view_out(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
291 unsafe {
292 let __receiver = <MapSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 ::unity::il2cpp_call!((::unity::module_base()+0x1f47aa0usize)as*mut u8,bool;
294(MapSight)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
295 }
296 }
297}
298
299#[cfg(feature = "app-mapsight")]
300impl<__T: IMapSight> IMapSightMethods for __T {}
301
302#[cfg(feature = "app-mapsight")]
303impl MapSight {
304 pub fn get_is_usable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
306 }
307
308 pub fn set_is_usable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
310 }
311
312 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
314 }
315
316 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
318 }
319
320 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
322 }
323
324 pub fn update_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
326 }
327
328 pub fn update_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
330 }
331
332 pub fn update_projection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
334 }
335
336 pub fn update_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
338 }
339
340 pub fn is_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
342 }
343
344 pub fn is_in_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
346 }
347
348 pub fn is_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
350 }
351
352 pub fn is_out_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
354 }
355
356 pub fn get_sight_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
358 }
359
360 pub fn get_sight_image_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
362 }
363
364 pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
366 }
367
368 pub fn on_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
370 }
371
372 pub fn on_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
374 }
375
376 pub fn get_image_player_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
378 }
379
380 pub fn get_image_enemy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
382 }
383
384 pub fn get_image_ally_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
386 }
387
388 pub fn get_view_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
390 }
391
392 pub fn is_view_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
394 }
395
396 pub fn is_view_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
398 }
399}
400
401#[cfg(feature = "app-mapsight")]
402impl MapSight {
403 #[doc = "Direct (non-virtual) call to `MapSight`'s own `get_Version`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
404 pub unsafe fn get_version(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
405 let __mi = Self::get_version_method_info();
406 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
407 __inner(this.into(), ::core::option::Option::None)
408 }
409
410 #[doc = "Direct (non-virtual) call to `MapSight`'s own `OnSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
411 pub unsafe fn on_serialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2) -> () {
412 let __mi = Self::on_serialize_method_info();
413 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
414 ::core::mem::transmute(__mi.method_ptr);
415 __inner(this.into(), stream, ::core::option::Option::None)
416 }
417
418 #[doc = "Direct (non-virtual) call to `MapSight`'s own `OnDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
419 pub unsafe fn on_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2, version: i32) -> () {
420 let __mi = Self::on_deserialize_method_info();
421 let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
422 ::core::mem::transmute(__mi.method_ptr);
423 __inner(this.into(), stream, version, ::core::option::Option::None)
424 }
425}
426
427#[cfg(feature = "app-mapsight")]
428impl MapSight {
429 #[doc = "`.ctor()` — no args"]
430 pub fn new() -> Self {
431 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
432 panic!(
433 "{}
434::{}
435 failed to instantiate",
436 ::core::stringify!(MapSight),
437 ::core::stringify!(new),
438 )
439 });
440 <Self as IMapSightMethods>::ctor(this);
441 this
442 }
443}
444
445#[cfg(feature = "app-mapsight")]
446#[doc(hidden)]
447pub mod prelude {
448 pub use super::{IMapSight, IMapSightMethods, MapSight};
449 #[cfg(feature = "app-singletonclass_1")]
450 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
451 #[cfg(feature = "system-object")]
452 pub use crate::system::object::IObjectMethods;
453 pub use crate::{app::singletonclass_1::ISingletonClass_1, system::object::IObject};
454}