engage/generated/app/
destroyinspector.rs1#[cfg(feature = "app-destroyinspector-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/destroyinspector/DestroyInspector.md"))]
18 #[::unity::class(namespace = "App", name = "DestroyInspector")]
19 #[parent(crate::app::pokeinspector::PokeInspector)]
20 pub struct DestroyInspector {}
21}
22
23#[cfg(feature = "app-destroyinspector-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-destroyinspector")]
27pub trait IDestroyInspectorMethods: IDestroyInspector {
28 #[doc = "`.ctor()` overload"]
29 fn ctor(self) -> () {
30 unsafe {
31 let __receiver = <DestroyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x1ceb470usize)as*mut u8,();
33(DestroyInspector)__receiver)
34 }
35 }
36 #[doc = "`GetLabel()` overload"]
37 fn get_label(self) -> ::unity::Il2CppString {
38 unsafe {
39 let __receiver = <DestroyInspector 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 <DestroyInspector as ::unity::ClassIdentity>::NAME,
52 "GetLabel",
53 )
54 });
55 let __inner: extern "C" fn(DestroyInspector, ::unity::OptionalMethod) -> ::unity::Il2CppString =
56 ::core::mem::transmute(__vi.method_ptr);
57 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58 __inner(__receiver, __mi)
59 }
60 }
61 }
62 #[doc = "`GetRange()` overload"]
63 fn get_range(self) -> i32 {
64 unsafe {
65 let __receiver = <DestroyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 {
67 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68 let __vi = *__vt.get(37usize).unwrap_or_else(|| {
69 panic!(
70 "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75 37usize,
76 __vt.len(),
77 <DestroyInspector as ::unity::ClassIdentity>::NAME,
78 "GetRange",
79 )
80 });
81 let __inner: extern "C" fn(DestroyInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
82 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83 __inner(__receiver, __mi)
84 }
85 }
86 }
87 #[doc = "`get_Color()` overload"]
88 fn get_color(self) -> crate::unity_engine::color::Color {
89 unsafe {
90 let __receiver = <DestroyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 11usize,
101 __vt.len(),
102 <DestroyInspector as ::unity::ClassIdentity>::NAME,
103 "get_Color",
104 )
105 });
106 let __inner: extern "C" fn(DestroyInspector, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
107 ::core::mem::transmute(__vi.method_ptr);
108 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
109 __inner(__receiver, __mi)
110 }
111 }
112 }
113 #[doc = "`PreCall(crate::app::procinst::ProcInst)` overload"]
114 fn pre_call(self, super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
115 unsafe {
116 let __receiver = <DestroyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 {
118 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
119 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
120 panic!(
121 "unity: virtual slot {}
122 out of range (vtable len {}
123) on the runtime class behind {}
124 (method `{}
125`)",
126 30usize,
127 __vt.len(),
128 <DestroyInspector as ::unity::ClassIdentity>::NAME,
129 "PreCall",
130 )
131 });
132 let __inner: extern "C" fn(DestroyInspector, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
133 ::core::mem::transmute(__vi.method_ptr);
134 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135 __inner(__receiver, ::core::convert::Into::into(super_), __mi)
136 }
137 }
138 }
139 #[doc = "`GetGlobalKey()` overload"]
140 fn get_global_key(self) -> ::unity::Il2CppString {
141 unsafe {
142 let __receiver = <DestroyInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 {
144 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
145 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
146 panic!(
147 "unity: virtual slot {}
148 out of range (vtable len {}
149) on the runtime class behind {}
150 (method `{}
151`)",
152 33usize,
153 __vt.len(),
154 <DestroyInspector as ::unity::ClassIdentity>::NAME,
155 "GetGlobalKey",
156 )
157 });
158 let __inner: extern "C" fn(DestroyInspector, ::unity::OptionalMethod) -> ::unity::Il2CppString =
159 ::core::mem::transmute(__vi.method_ptr);
160 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
161 __inner(__receiver, __mi)
162 }
163 }
164 }
165}
166
167#[cfg(feature = "app-destroyinspector")]
168impl<__T: IDestroyInspector> IDestroyInspectorMethods for __T {}
169
170#[cfg(feature = "app-destroyinspector")]
171impl DestroyInspector {
172 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174 }
175
176 pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
178 }
179
180 pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
182 }
183
184 pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
186 }
187
188 pub fn pre_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190 }
191
192 pub fn get_global_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194 }
195}
196
197#[cfg(feature = "app-destroyinspector")]
198impl DestroyInspector {
199 #[doc = "Direct (non-virtual) call to `DestroyInspector`'s own `GetLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
200 pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
201 let __mi = Self::get_label_method_info();
202 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
203 __inner(this.into(), ::core::option::Option::None)
204 }
205
206 #[doc = "Direct (non-virtual) call to `DestroyInspector`'s own `GetRange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
207 pub unsafe fn get_range(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
208 let __mi = Self::get_range_method_info();
209 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
210 __inner(this.into(), ::core::option::Option::None)
211 }
212
213 #[doc = "Direct (non-virtual) call to `DestroyInspector`'s own `get_Color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
214 pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
215 let __mi = Self::get_color_method_info();
216 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
217 ::core::mem::transmute(__mi.method_ptr);
218 __inner(this.into(), ::core::option::Option::None)
219 }
220
221 #[doc = "Direct (non-virtual) call to `DestroyInspector`'s own `PreCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222 pub unsafe fn pre_call(this: impl ::core::convert::Into<::unity::IlInstance>, super_: crate::app::procinst::ProcInst) -> () {
223 let __mi = Self::pre_call_method_info();
224 let __inner: extern "C" fn(::unity::IlInstance, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
225 ::core::mem::transmute(__mi.method_ptr);
226 __inner(this.into(), super_, ::core::option::Option::None)
227 }
228
229 #[doc = "Direct (non-virtual) call to `DestroyInspector`'s own `GetGlobalKey`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230 pub unsafe fn get_global_key(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
231 let __mi = Self::get_global_key_method_info();
232 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
233 __inner(this.into(), ::core::option::Option::None)
234 }
235}
236
237#[cfg(feature = "app-destroyinspector")]
238impl DestroyInspector {
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!(DestroyInspector),
247 ::core::stringify!(new),
248 )
249 });
250 <Self as IDestroyInspectorMethods>::ctor(this);
251 this
252 }
253}
254
255#[cfg(feature = "app-destroyinspector")]
256#[doc(hidden)]
257pub mod prelude {
258 pub use super::{DestroyInspector, IDestroyInspector, IDestroyInspectorMethods};
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}