Skip to main content

engage/generated/app/
mapimagesightcore.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapimagesightcore-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::mapimagecorebit::{IMapImageCoreBit, MapImageCoreBit},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagesightcore/MapImageSightCore.md"))]
14    #[::unity::class(namespace = "App", name = "MapImageSightCore")]
15    #[parent(crate::app::mapimagecorebit::MapImageCoreBit)]
16    pub struct MapImageSightCore {
17        #[static_field]
18        #[rename(name = "s_SightOcclusion")]
19        pub s_sight_occlusion: crate::app::gameparam::GameParam_Holder,
20    }
21}
22
23#[cfg(feature = "app-mapimagesightcore-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-mapimagesightcore")]
27impl MapImageSightCore {
28    #[doc = "`.cctor()` overload"]
29    pub fn cctor() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2062940usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-mapimagesightcore")]
38pub trait IMapImageSightCoreMethods: IMapImageSightCore {
39    #[doc = "`Set(i32, i32, i32)` overload"]
40    fn set(self, sx: impl ::core::convert::Into<i32>, sz: impl ::core::convert::Into<i32>, sight: impl ::core::convert::Into<i32>) -> () {
41        unsafe {
42            let __receiver = <MapImageSightCore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x20626a0usize)as*mut u8,();
44(MapImageSightCore)__receiver,(i32)::core::convert::Into::into(sx),(i32)::core::convert::Into::into(sz),(i32)::core::convert::Into::into(sight))
45        }
46    }
47    #[doc = "`Set(crate::app::unit::Unit)` overload"]
48    fn set_2(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
49        unsafe {
50            let __receiver = <MapImageSightCore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x2062430usize)as*mut u8,();
52(MapImageSightCore)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
53        }
54    }
55    #[doc = "`ClearInSight()` overload"]
56    fn clear_in_sight(self) -> () {
57        unsafe {
58            let __receiver = <MapImageSightCore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x2061be0usize)as*mut u8,();
60(MapImageSightCore)__receiver)
61        }
62    }
63    #[doc = "`.ctor()` overload"]
64    fn ctor(self) -> () {
65        unsafe {
66            let __receiver = <MapImageSightCore as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x2061b70usize)as*mut u8,();
68(MapImageSightCore)__receiver)
69        }
70    }
71}
72
73#[cfg(feature = "app-mapimagesightcore")]
74impl<__T: IMapImageSightCore> IMapImageSightCoreMethods for __T {}
75
76#[cfg(feature = "app-mapimagesightcore")]
77impl MapImageSightCore {
78    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80    }
81
82    pub fn set_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
84    }
85
86    pub fn clear_in_sight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
88    }
89
90    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
92    }
93
94    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
96    }
97}
98
99#[cfg(feature = "app-mapimagesightcore")]
100impl MapImageSightCore {
101    #[doc = "`.ctor()` — no args"]
102    pub fn new() -> Self {
103        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
104            panic!(
105                "{}
106::{}
107 failed to instantiate",
108                ::core::stringify!(MapImageSightCore),
109                ::core::stringify!(new),
110            )
111        });
112        <Self as IMapImageSightCoreMethods>::ctor(this);
113        this
114    }
115}
116
117#[cfg(feature = "app-mapimagesightcore")]
118#[doc(hidden)]
119pub mod prelude {
120    pub use super::{IMapImageSightCore, IMapImageSightCoreMethods, MapImageSightCore};
121    #[cfg(feature = "app-mapimagecorebit")]
122    pub use crate::app::mapimagecorebit::IMapImageCoreBitMethods;
123    #[cfg(feature = "system-object")]
124    pub use crate::system::object::IObjectMethods;
125    pub use crate::{app::mapimagecorebit::IMapImageCoreBit, system::object::IObject};
126}