engage/generated/app/
visitinspector.rs1#[cfg(feature = "app-visitinspector-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/visitinspector/VisitInspector.md"))]
18 #[::unity::class(namespace = "App", name = "VisitInspector")]
19 #[parent(crate::app::pokeinspector::PokeInspector)]
20 pub struct VisitInspector {}
21}
22
23#[cfg(feature = "app-visitinspector-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-visitinspector")]
27pub trait IVisitInspectorMethods: IVisitInspector {
28 #[doc = "`.ctor()` overload"]
29 fn ctor(self) -> () {
30 unsafe {
31 let __receiver = <VisitInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x21c3810usize)as*mut u8,();
33(VisitInspector)__receiver)
34 }
35 }
36 #[doc = "`GetLabel()` overload"]
37 fn get_label(self) -> ::unity::Il2CppString {
38 unsafe {
39 let __receiver = <VisitInspector 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 <VisitInspector as ::unity::ClassIdentity>::NAME,
52 "GetLabel",
53 )
54 });
55 let __inner: extern "C" fn(VisitInspector, ::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 = <VisitInspector 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 <VisitInspector as ::unity::ClassIdentity>::NAME,
78 "GetRange",
79 )
80 });
81 let __inner: extern "C" fn(VisitInspector, ::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 = <VisitInspector 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 <VisitInspector as ::unity::ClassIdentity>::NAME,
103 "get_Color",
104 )
105 });
106 let __inner: extern "C" fn(VisitInspector, ::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 = "`PostCall(crate::app::procinst::ProcInst)` overload"]
114 fn post_call(self, super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
115 unsafe {
116 let __receiver = <VisitInspector 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(31usize).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 31usize,
127 __vt.len(),
128 <VisitInspector as ::unity::ClassIdentity>::NAME,
129 "PostCall",
130 )
131 });
132 let __inner: extern "C" fn(VisitInspector, 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}
140
141#[cfg(feature = "app-visitinspector")]
142impl<__T: IVisitInspector> IVisitInspectorMethods for __T {}
143
144#[cfg(feature = "app-visitinspector")]
145impl VisitInspector {
146 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
148 }
149
150 pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
152 }
153
154 pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
156 }
157
158 pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
160 }
161
162 pub fn post_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
164 }
165}
166
167#[cfg(feature = "app-visitinspector")]
168impl VisitInspector {
169 #[doc = "Direct (non-virtual) call to `VisitInspector`'s own `GetLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
170 pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
171 let __mi = Self::get_label_method_info();
172 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
173 __inner(this.into(), ::core::option::Option::None)
174 }
175
176 #[doc = "Direct (non-virtual) call to `VisitInspector`'s own `GetRange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
177 pub unsafe fn get_range(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
178 let __mi = Self::get_range_method_info();
179 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
180 __inner(this.into(), ::core::option::Option::None)
181 }
182
183 #[doc = "Direct (non-virtual) call to `VisitInspector`'s own `get_Color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
184 pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
185 let __mi = Self::get_color_method_info();
186 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
187 ::core::mem::transmute(__mi.method_ptr);
188 __inner(this.into(), ::core::option::Option::None)
189 }
190
191 #[doc = "Direct (non-virtual) call to `VisitInspector`'s own `PostCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
192 pub unsafe fn post_call(this: impl ::core::convert::Into<::unity::IlInstance>, super_: crate::app::procinst::ProcInst) -> () {
193 let __mi = Self::post_call_method_info();
194 let __inner: extern "C" fn(::unity::IlInstance, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
195 ::core::mem::transmute(__mi.method_ptr);
196 __inner(this.into(), super_, ::core::option::Option::None)
197 }
198}
199
200#[cfg(feature = "app-visitinspector")]
201impl VisitInspector {
202 #[doc = "`.ctor()` — no args"]
203 pub fn new() -> Self {
204 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
205 panic!(
206 "{}
207::{}
208 failed to instantiate",
209 ::core::stringify!(VisitInspector),
210 ::core::stringify!(new),
211 )
212 });
213 <Self as IVisitInspectorMethods>::ctor(this);
214 this
215 }
216}
217
218#[cfg(feature = "app-visitinspector")]
219#[doc(hidden)]
220pub mod prelude {
221 pub use super::{IVisitInspector, IVisitInspectorMethods, VisitInspector};
222 #[cfg(feature = "app-mapinspector")]
223 pub use crate::app::mapinspector::IMapInspectorMethods;
224 #[cfg(feature = "app-pokeinspector")]
225 pub use crate::app::pokeinspector::IPokeInspectorMethods;
226 #[cfg(feature = "app-scriptutil")]
227 pub use crate::app::scriptutil::IScriptUtilMethods;
228 #[cfg(feature = "system-object")]
229 pub use crate::system::object::IObjectMethods;
230 pub use crate::{
231 app::{mapinspector::IMapInspector, pokeinspector::IPokeInspector, scriptutil::IScriptUtil},
232 system::object::IObject,
233 };
234}