engage/generated/app/
mapimagesight.rs1#[cfg(feature = "app-mapimagesight-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 mapimagecorebit::{IMapImageCoreBit, MapImageCoreBit},
11 mapimagesightcore::{IMapImageSightCore, MapImageSightCore},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagesight/MapImageSight.md"))]
17 #[::unity::class(namespace = "App", name = "MapImageSight")]
18 #[parent(crate::app::mapimagesightcore::MapImageSightCore)]
19 pub struct MapImageSight {
20 #[offset(24)]
21 #[rename(name = "m_ForceType")]
22 pub m_force_type: crate::app::force::Force_Type,
23 }
24}
25
26#[cfg(feature = "app-mapimagesight-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-mapimagesight")]
30pub trait IMapImageSightMethods: IMapImageSight {
31 #[doc = "`.ctor(crate::app::force::Force_Type)` overload"]
32 fn ctor(self, force_type: impl ::core::convert::Into<crate::app::force::Force_Type>) -> () {
33 unsafe {
34 let __receiver = <MapImageSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x2061ab0usize)as*mut u8,();
36(MapImageSight)__receiver,(crate::app::force::Force_Type)::core::convert::Into::into(force_type))
37 }
38 }
39 #[doc = "`Update()` overload"]
40 fn update(self) -> () {
41 unsafe {
42 let __receiver = <MapImageSight as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2061bf0usize)as*mut u8,();
44(MapImageSight)__receiver)
45 }
46 }
47}
48
49#[cfg(feature = "app-mapimagesight")]
50impl<__T: IMapImageSight> IMapImageSightMethods for __T {}
51
52#[cfg(feature = "app-mapimagesight")]
53impl MapImageSight {
54 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
56 }
57
58 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
60 }
61}
62
63#[cfg(feature = "app-mapimagesight")]
64impl MapImageSight {
65 #[doc = "`.ctor(crate::app::force::Force_Type)` — overload selector"]
66 pub fn new(force_type: crate::app::force::Force_Type) -> Self {
67 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
68 panic!(
69 "{}
70::{}
71 failed to instantiate",
72 ::core::stringify!(MapImageSight),
73 ::core::stringify!(new),
74 )
75 });
76 <Self as IMapImageSightMethods>::ctor(this, force_type);
77 this
78 }
79}
80
81#[cfg(feature = "app-mapimagesight")]
82#[doc(hidden)]
83pub mod prelude {
84 pub use super::{IMapImageSight, IMapImageSightMethods, MapImageSight};
85 #[cfg(feature = "app-mapimagecorebit")]
86 pub use crate::app::mapimagecorebit::IMapImageCoreBitMethods;
87 #[cfg(feature = "app-mapimagesightcore")]
88 pub use crate::app::mapimagesightcore::IMapImageSightCoreMethods;
89 #[cfg(feature = "system-object")]
90 pub use crate::system::object::IObjectMethods;
91 pub use crate::{
92 app::{mapimagecorebit::IMapImageCoreBit, mapimagesightcore::IMapImageSightCore},
93 system::object::IObject,
94 };
95}