Skip to main content

engage/generated/app/
torchinspector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-torchinspector-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/torchinspector/TorchInspector.md"))]
18    #[::unity::class(namespace = "App", name = "TorchInspector")]
19    #[parent(crate::app::pokeinspector::PokeInspector)]
20    pub struct TorchInspector {}
21}
22
23#[cfg(feature = "app-torchinspector-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-torchinspector")]
27pub trait ITorchInspectorMethods: ITorchInspector {
28    #[doc = "`.ctor()` overload"]
29    fn ctor(self) -> () {
30        unsafe {
31            let __receiver = <TorchInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x22991e0usize)as*mut u8,();
33(TorchInspector)__receiver)
34        }
35    }
36    #[doc = "`GetLabel()` overload"]
37    fn get_label(self) -> ::unity::Il2CppString {
38        unsafe {
39            let __receiver = <TorchInspector 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                        <TorchInspector as ::unity::ClassIdentity>::NAME,
52                        "GetLabel",
53                    )
54                });
55                let __inner: extern "C" fn(TorchInspector, ::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 = <TorchInspector 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                        <TorchInspector as ::unity::ClassIdentity>::NAME,
78                        "GetRange",
79                    )
80                });
81                let __inner: extern "C" fn(TorchInspector, ::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 = <TorchInspector 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                        <TorchInspector as ::unity::ClassIdentity>::NAME,
103                        "get_Color",
104                    )
105                });
106                let __inner: extern "C" fn(TorchInspector, ::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 = <TorchInspector 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                        <TorchInspector as ::unity::ClassIdentity>::NAME,
129                        "PreCall",
130                    )
131                });
132                let __inner: extern "C" fn(TorchInspector, 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 = "`Completed()` overload"]
140    fn completed(self) -> () {
141        unsafe {
142            let __receiver = <TorchInspector 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(4usize).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                        4usize,
153                        __vt.len(),
154                        <TorchInspector as ::unity::ClassIdentity>::NAME,
155                        "Completed",
156                    )
157                });
158                let __inner: extern "C" fn(TorchInspector, ::unity::OptionalMethod) -> () = ::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, __mi)
161            }
162        }
163    }
164}
165
166#[cfg(feature = "app-torchinspector")]
167impl<__T: ITorchInspector> ITorchInspectorMethods for __T {}
168
169#[cfg(feature = "app-torchinspector")]
170impl TorchInspector {
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 pre_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
189    }
190
191    pub fn completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
193    }
194}
195
196#[cfg(feature = "app-torchinspector")]
197impl TorchInspector {
198    #[doc = "Direct (non-virtual) call to `TorchInspector`'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 `TorchInspector`'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 `TorchInspector`'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 `TorchInspector`'s own `PreCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
221    pub unsafe fn pre_call(this: impl ::core::convert::Into<::unity::IlInstance>, super_: crate::app::procinst::ProcInst) -> () {
222        let __mi = Self::pre_call_method_info();
223        let __inner: extern "C" fn(::unity::IlInstance, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
224            ::core::mem::transmute(__mi.method_ptr);
225        __inner(this.into(), super_, ::core::option::Option::None)
226    }
227
228    #[doc = "Direct (non-virtual) call to `TorchInspector`'s own `Completed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229    pub unsafe fn completed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
230        let __mi = Self::completed_method_info();
231        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
232        __inner(this.into(), ::core::option::Option::None)
233    }
234}
235
236#[cfg(feature = "app-torchinspector")]
237impl TorchInspector {
238    #[doc = "`.ctor()` — no args"]
239    pub fn new() -> Self {
240        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
241            panic!(
242                "{}
243::{}
244 failed to instantiate",
245                ::core::stringify!(TorchInspector),
246                ::core::stringify!(new),
247            )
248        });
249        <Self as ITorchInspectorMethods>::ctor(this);
250        this
251    }
252}
253
254#[cfg(feature = "app-torchinspector")]
255#[doc(hidden)]
256pub mod prelude {
257    pub use super::{ITorchInspector, ITorchInspectorMethods, TorchInspector};
258    #[cfg(feature = "app-mapinspector")]
259    pub use crate::app::mapinspector::IMapInspectorMethods;
260    #[cfg(feature = "app-pokeinspector")]
261    pub use crate::app::pokeinspector::IPokeInspectorMethods;
262    #[cfg(feature = "app-scriptutil")]
263    pub use crate::app::scriptutil::IScriptUtilMethods;
264    #[cfg(feature = "system-object")]
265    pub use crate::system::object::IObjectMethods;
266    pub use crate::{
267        app::{mapinspector::IMapInspector, pokeinspector::IPokeInspector, scriptutil::IScriptUtil},
268        system::object::IObject,
269    };
270}