Skip to main content

engage/generated/app/
areainspector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-areainspector-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            mapinspector::{IMapInspector, MapInspector},
11            scriptutil::{IScriptUtil, ScriptUtil},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/areainspector/AreaInspector.md"))]
17    #[::unity::class(namespace = "App", name = "AreaInspector")]
18    #[parent(crate::app::mapinspector::MapInspector)]
19    pub struct AreaInspector {
20        #[offset(48)]
21        #[rename(name = "m_X1")]
22        pub m_x1: i32,
23        #[offset(52)]
24        #[rename(name = "m_Z1")]
25        pub m_z1: i32,
26        #[offset(56)]
27        #[rename(name = "m_X2")]
28        pub m_x2: i32,
29        #[offset(60)]
30        #[rename(name = "m_Z2")]
31        pub m_z2: i32,
32        #[offset(64)]
33        #[rename(name = "m_Force")]
34        pub m_force: i32,
35    }
36}
37
38#[cfg(feature = "app-areainspector-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-areainspector")]
42pub trait IAreaInspectorMethods: IAreaInspector {
43    #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
44    fn ctor(self, args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
45        unsafe {
46            let __receiver = <AreaInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x1c9cce0usize)as*mut u8,();
48(AreaInspector)__receiver,(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
49        }
50    }
51    #[doc = "`IsEanble(i32, i32, i32)` overload"]
52    fn is_eanble(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>, force: impl ::core::convert::Into<i32>) -> bool {
53        unsafe {
54            let __receiver = <AreaInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            {
56                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
57                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
58                    panic!(
59                        "unity: virtual slot {}
60 out of range (vtable len {}
61) on the runtime class behind {}
62 (method `{}
63`)",
64                        8usize,
65                        __vt.len(),
66                        <AreaInspector as ::unity::ClassIdentity>::NAME,
67                        "IsEanble",
68                    )
69                });
70                let __inner: extern "C" fn(AreaInspector, i32, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
71                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
72                __inner(
73                    __receiver,
74                    ::core::convert::Into::into(x),
75                    ::core::convert::Into::into(z),
76                    ::core::convert::Into::into(force),
77                    __mi,
78                )
79            }
80        }
81    }
82    #[doc = "`get_X1()` overload"]
83    fn get_x1(self) -> i32 {
84        unsafe {
85            let __receiver = <AreaInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            {
87                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
88                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
89                    panic!(
90                        "unity: virtual slot {}
91 out of range (vtable len {}
92) on the runtime class behind {}
93 (method `{}
94`)",
95                        14usize,
96                        __vt.len(),
97                        <AreaInspector as ::unity::ClassIdentity>::NAME,
98                        "get_X1",
99                    )
100                });
101                let __inner: extern "C" fn(AreaInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
102                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
103                __inner(__receiver, __mi)
104            }
105        }
106    }
107    #[doc = "`get_Z1()` overload"]
108    fn get_z1(self) -> i32 {
109        unsafe {
110            let __receiver = <AreaInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            {
112                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
114                    panic!(
115                        "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120                        15usize,
121                        __vt.len(),
122                        <AreaInspector as ::unity::ClassIdentity>::NAME,
123                        "get_Z1",
124                    )
125                });
126                let __inner: extern "C" fn(AreaInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
127                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128                __inner(__receiver, __mi)
129            }
130        }
131    }
132    #[doc = "`get_X2()` overload"]
133    fn get_x2(self) -> i32 {
134        unsafe {
135            let __receiver = <AreaInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            {
137                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
138                let __vi = *__vt.get(16usize).unwrap_or_else(|| {
139                    panic!(
140                        "unity: virtual slot {}
141 out of range (vtable len {}
142) on the runtime class behind {}
143 (method `{}
144`)",
145                        16usize,
146                        __vt.len(),
147                        <AreaInspector as ::unity::ClassIdentity>::NAME,
148                        "get_X2",
149                    )
150                });
151                let __inner: extern "C" fn(AreaInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
152                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
153                __inner(__receiver, __mi)
154            }
155        }
156    }
157    #[doc = "`get_Z2()` overload"]
158    fn get_z2(self) -> i32 {
159        unsafe {
160            let __receiver = <AreaInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            {
162                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
163                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
164                    panic!(
165                        "unity: virtual slot {}
166 out of range (vtable len {}
167) on the runtime class behind {}
168 (method `{}
169`)",
170                        17usize,
171                        __vt.len(),
172                        <AreaInspector as ::unity::ClassIdentity>::NAME,
173                        "get_Z2",
174                    )
175                });
176                let __inner: extern "C" fn(AreaInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
177                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
178                __inner(__receiver, __mi)
179            }
180        }
181    }
182    #[doc = "`get_Color()` overload"]
183    fn get_color(self) -> crate::unity_engine::color::Color {
184        unsafe {
185            let __receiver = <AreaInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            {
187                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
188                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
189                    panic!(
190                        "unity: virtual slot {}
191 out of range (vtable len {}
192) on the runtime class behind {}
193 (method `{}
194`)",
195                        11usize,
196                        __vt.len(),
197                        <AreaInspector as ::unity::ClassIdentity>::NAME,
198                        "get_Color",
199                    )
200                });
201                let __inner: extern "C" fn(AreaInspector, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
202                    ::core::mem::transmute(__vi.method_ptr);
203                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
204                __inner(__receiver, __mi)
205            }
206        }
207    }
208}
209
210#[cfg(feature = "app-areainspector")]
211impl<__T: IAreaInspector> IAreaInspectorMethods for __T {}
212
213#[cfg(feature = "app-areainspector")]
214impl AreaInspector {
215    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
217    }
218
219    pub fn is_eanble_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
221    }
222
223    pub fn get_x1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
225    }
226
227    pub fn get_z1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
229    }
230
231    pub fn get_x2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
233    }
234
235    pub fn get_z2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
237    }
238
239    pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
241    }
242}
243
244#[cfg(feature = "app-areainspector")]
245impl AreaInspector {
246    #[doc = "Direct (non-virtual) call to `AreaInspector`'s own `IsEanble`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
247    pub unsafe fn is_eanble(this: impl ::core::convert::Into<::unity::IlInstance>, x: i32, z: i32, force: i32) -> bool {
248        let __mi = Self::is_eanble_method_info();
249        let __inner: extern "C" fn(::unity::IlInstance, i32, i32, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
250        __inner(this.into(), x, z, force, ::core::option::Option::None)
251    }
252
253    #[doc = "Direct (non-virtual) call to `AreaInspector`'s own `get_X1`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
254    pub unsafe fn get_x1(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
255        let __mi = Self::get_x1_method_info();
256        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
257        __inner(this.into(), ::core::option::Option::None)
258    }
259
260    #[doc = "Direct (non-virtual) call to `AreaInspector`'s own `get_Z1`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261    pub unsafe fn get_z1(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
262        let __mi = Self::get_z1_method_info();
263        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
264        __inner(this.into(), ::core::option::Option::None)
265    }
266
267    #[doc = "Direct (non-virtual) call to `AreaInspector`'s own `get_X2`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
268    pub unsafe fn get_x2(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
269        let __mi = Self::get_x2_method_info();
270        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
271        __inner(this.into(), ::core::option::Option::None)
272    }
273
274    #[doc = "Direct (non-virtual) call to `AreaInspector`'s own `get_Z2`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
275    pub unsafe fn get_z2(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
276        let __mi = Self::get_z2_method_info();
277        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
278        __inner(this.into(), ::core::option::Option::None)
279    }
280
281    #[doc = "Direct (non-virtual) call to `AreaInspector`'s own `get_Color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
282    pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
283        let __mi = Self::get_color_method_info();
284        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
285            ::core::mem::transmute(__mi.method_ptr);
286        __inner(this.into(), ::core::option::Option::None)
287    }
288}
289
290#[cfg(feature = "app-areainspector")]
291impl AreaInspector {
292    #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` — overload selector"]
293    pub fn new(args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> Self {
294        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
295            panic!(
296                "{}
297::{}
298 failed to instantiate",
299                ::core::stringify!(AreaInspector),
300                ::core::stringify!(new),
301            )
302        });
303        <Self as IAreaInspectorMethods>::ctor(this, args);
304        this
305    }
306}
307
308#[cfg(feature = "app-areainspector")]
309#[doc(hidden)]
310pub mod prelude {
311    pub use super::{AreaInspector, IAreaInspector, IAreaInspectorMethods};
312    #[cfg(feature = "app-mapinspector")]
313    pub use crate::app::mapinspector::IMapInspectorMethods;
314    #[cfg(feature = "app-scriptutil")]
315    pub use crate::app::scriptutil::IScriptUtilMethods;
316    #[cfg(feature = "system-object")]
317    pub use crate::system::object::IObjectMethods;
318    pub use crate::{
319        app::{mapinspector::IMapInspector, scriptutil::IScriptUtil},
320        system::object::IObject,
321    };
322}