Skip to main content

engage/generated/app/
doorinspector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-doorinspector-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            mapinspector::{IMapInspector, MapInspector},
11            pokeinspector::{IPokeInspector, PokeInspector},
12            scriptutil::{IScriptUtil, ScriptUtil},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/doorinspector/DoorInspector.md"))]
18    #[::unity::class(namespace = "App", name = "DoorInspector")]
19    #[parent(crate::app::pokeinspector::PokeInspector)]
20    pub struct DoorInspector {}
21}
22
23#[cfg(feature = "app-doorinspector-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-doorinspector")]
27pub trait IDoorInspectorMethods: IDoorInspector {
28    #[doc = "`.ctor()` overload"]
29    fn ctor(self) -> () {
30        unsafe {
31            let __receiver = <DoorInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x1cfc220usize)as*mut u8,();
33(DoorInspector)__receiver)
34        }
35    }
36    #[doc = "`GetLabel()` overload"]
37    fn get_label(self) -> ::unity::Il2CppString {
38        unsafe {
39            let __receiver = <DoorInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            {
41                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
42                let __vi = *__vt.get(36usize).unwrap_or_else(|| {
43                    panic!(
44                        "unity: virtual slot {}
45 out of range (vtable len {}
46) on the runtime class behind {}
47 (method `{}
48`)",
49                        36usize,
50                        __vt.len(),
51                        <DoorInspector as ::unity::ClassIdentity>::NAME,
52                        "GetLabel",
53                    )
54                });
55                let __inner: extern "C" fn(DoorInspector, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
56                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
57                __inner(__receiver, __mi)
58            }
59        }
60    }
61    #[doc = "`GetRange()` overload"]
62    fn get_range(self) -> i32 {
63        unsafe {
64            let __receiver = <DoorInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            {
66                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67                let __vi = *__vt.get(37usize).unwrap_or_else(|| {
68                    panic!(
69                        "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74                        37usize,
75                        __vt.len(),
76                        <DoorInspector as ::unity::ClassIdentity>::NAME,
77                        "GetRange",
78                    )
79                });
80                let __inner: extern "C" fn(DoorInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
81                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
82                __inner(__receiver, __mi)
83            }
84        }
85    }
86    #[doc = "`get_Color()` overload"]
87    fn get_color(self) -> crate::unity_engine::color::Color {
88        unsafe {
89            let __receiver = <DoorInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        11usize,
100                        __vt.len(),
101                        <DoorInspector as ::unity::ClassIdentity>::NAME,
102                        "get_Color",
103                    )
104                });
105                let __inner: extern "C" fn(DoorInspector, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
106                    ::core::mem::transmute(__vi.method_ptr);
107                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
108                __inner(__receiver, __mi)
109            }
110        }
111    }
112    #[doc = "`CanBreakable(crate::app::force::Force_Type)` overload"]
113    fn can_breakable(self, force: impl ::core::convert::Into<crate::app::force::Force_Type>) -> bool {
114        unsafe {
115            let __receiver = <DoorInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            {
117                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
119                    panic!(
120                        "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125                        27usize,
126                        __vt.len(),
127                        <DoorInspector as ::unity::ClassIdentity>::NAME,
128                        "CanBreakable",
129                    )
130                });
131                let __inner: extern "C" fn(DoorInspector, crate::app::force::Force_Type, ::unity::OptionalMethod) -> bool =
132                    ::core::mem::transmute(__vi.method_ptr);
133                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
134                __inner(__receiver, ::core::convert::Into::into(force), __mi)
135            }
136        }
137    }
138    #[doc = "`PreCall(crate::app::procinst::ProcInst)` overload"]
139    fn pre_call(self, super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
140        unsafe {
141            let __receiver = <DoorInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            {
143                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
144                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
145                    panic!(
146                        "unity: virtual slot {}
147 out of range (vtable len {}
148) on the runtime class behind {}
149 (method `{}
150`)",
151                        30usize,
152                        __vt.len(),
153                        <DoorInspector as ::unity::ClassIdentity>::NAME,
154                        "PreCall",
155                    )
156                });
157                let __inner: extern "C" fn(DoorInspector, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
158                    ::core::mem::transmute(__vi.method_ptr);
159                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
160                __inner(__receiver, ::core::convert::Into::into(super_), __mi)
161            }
162        }
163    }
164}
165
166#[cfg(feature = "app-doorinspector")]
167impl<__T: IDoorInspector> IDoorInspectorMethods for __T {}
168
169#[cfg(feature = "app-doorinspector")]
170impl DoorInspector {
171    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
173    }
174
175    pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
177    }
178
179    pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
181    }
182
183    pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
185    }
186
187    pub fn can_breakable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
189    }
190
191    pub fn pre_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
193    }
194}
195
196#[cfg(feature = "app-doorinspector")]
197impl DoorInspector {
198    #[doc = "Direct (non-virtual) call to `DoorInspector`'s own `GetLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
199    pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
200        let __mi = Self::get_label_method_info();
201        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
202        __inner(this.into(), ::core::option::Option::None)
203    }
204
205    #[doc = "Direct (non-virtual) call to `DoorInspector`'s own `GetRange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
206    pub unsafe fn get_range(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
207        let __mi = Self::get_range_method_info();
208        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
209        __inner(this.into(), ::core::option::Option::None)
210    }
211
212    #[doc = "Direct (non-virtual) call to `DoorInspector`'s own `get_Color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
213    pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
214        let __mi = Self::get_color_method_info();
215        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
216            ::core::mem::transmute(__mi.method_ptr);
217        __inner(this.into(), ::core::option::Option::None)
218    }
219
220    #[doc = "Direct (non-virtual) call to `DoorInspector`'s own `CanBreakable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
221    pub unsafe fn can_breakable(this: impl ::core::convert::Into<::unity::IlInstance>, force: crate::app::force::Force_Type) -> bool {
222        let __mi = Self::can_breakable_method_info();
223        let __inner: extern "C" fn(::unity::IlInstance, crate::app::force::Force_Type, ::unity::OptionalMethod) -> bool =
224            ::core::mem::transmute(__mi.method_ptr);
225        __inner(this.into(), force, ::core::option::Option::None)
226    }
227
228    #[doc = "Direct (non-virtual) call to `DoorInspector`'s own `PreCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229    pub unsafe fn pre_call(this: impl ::core::convert::Into<::unity::IlInstance>, super_: crate::app::procinst::ProcInst) -> () {
230        let __mi = Self::pre_call_method_info();
231        let __inner: extern "C" fn(::unity::IlInstance, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
232            ::core::mem::transmute(__mi.method_ptr);
233        __inner(this.into(), super_, ::core::option::Option::None)
234    }
235}
236
237#[cfg(feature = "app-doorinspector")]
238impl DoorInspector {
239    #[doc = "`.ctor()` — no args"]
240    pub fn new() -> Self {
241        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
242            panic!(
243                "{}
244::{}
245 failed to instantiate",
246                ::core::stringify!(DoorInspector),
247                ::core::stringify!(new),
248            )
249        });
250        <Self as IDoorInspectorMethods>::ctor(this);
251        this
252    }
253}
254
255#[cfg(feature = "app-doorinspector")]
256#[doc(hidden)]
257pub mod prelude {
258    pub use super::{DoorInspector, IDoorInspector, IDoorInspectorMethods};
259    #[cfg(feature = "app-mapinspector")]
260    pub use crate::app::mapinspector::IMapInspectorMethods;
261    #[cfg(feature = "app-pokeinspector")]
262    pub use crate::app::pokeinspector::IPokeInspectorMethods;
263    #[cfg(feature = "app-scriptutil")]
264    pub use crate::app::scriptutil::IScriptUtilMethods;
265    #[cfg(feature = "system-object")]
266    pub use crate::system::object::IObjectMethods;
267    pub use crate::{
268        app::{mapinspector::IMapInspector, pokeinspector::IPokeInspector, scriptutil::IScriptUtil},
269        system::object::IObject,
270    };
271}