Skip to main content

engage/generated/app/
helpspotinspector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-helpspotinspector-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/helpspotinspector/HelpSpotInspector.md"))]
18    #[::unity::class(namespace = "App", name = "HelpSpotInspector")]
19    #[parent(crate::app::pokeinspector::PokeInspector)]
20    pub struct HelpSpotInspector {}
21}
22
23#[cfg(feature = "app-helpspotinspector-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-helpspotinspector")]
27pub trait IHelpSpotInspectorMethods: IHelpSpotInspector {
28    #[doc = "`.ctor()` overload"]
29    fn ctor(self) -> () {
30        unsafe {
31            let __receiver = <HelpSpotInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x2165600usize)as*mut u8,();
33(HelpSpotInspector)__receiver)
34        }
35    }
36    #[doc = "`GetLabel()` overload"]
37    fn get_label(self) -> ::unity::Il2CppString {
38        unsafe {
39            let __receiver = <HelpSpotInspector 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                        <HelpSpotInspector as ::unity::ClassIdentity>::NAME,
52                        "GetLabel",
53                    )
54                });
55                let __inner: extern "C" fn(HelpSpotInspector, ::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 = <HelpSpotInspector 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                        <HelpSpotInspector as ::unity::ClassIdentity>::NAME,
78                        "GetRange",
79                    )
80                });
81                let __inner: extern "C" fn(HelpSpotInspector, ::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 = <HelpSpotInspector 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                        <HelpSpotInspector as ::unity::ClassIdentity>::NAME,
103                        "get_Color",
104                    )
105                });
106                let __inner: extern "C" fn(HelpSpotInspector, ::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}
114
115#[cfg(feature = "app-helpspotinspector")]
116impl<__T: IHelpSpotInspector> IHelpSpotInspectorMethods for __T {}
117
118#[cfg(feature = "app-helpspotinspector")]
119impl HelpSpotInspector {
120    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
122    }
123
124    pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
126    }
127
128    pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
130    }
131
132    pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
134    }
135}
136
137#[cfg(feature = "app-helpspotinspector")]
138impl HelpSpotInspector {
139    #[doc = "Direct (non-virtual) call to `HelpSpotInspector`'s own `GetLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
140    pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
141        let __mi = Self::get_label_method_info();
142        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
143        __inner(this.into(), ::core::option::Option::None)
144    }
145
146    #[doc = "Direct (non-virtual) call to `HelpSpotInspector`'s own `GetRange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
147    pub unsafe fn get_range(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
148        let __mi = Self::get_range_method_info();
149        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
150        __inner(this.into(), ::core::option::Option::None)
151    }
152
153    #[doc = "Direct (non-virtual) call to `HelpSpotInspector`'s own `get_Color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154    pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
155        let __mi = Self::get_color_method_info();
156        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
157            ::core::mem::transmute(__mi.method_ptr);
158        __inner(this.into(), ::core::option::Option::None)
159    }
160}
161
162#[cfg(feature = "app-helpspotinspector")]
163impl HelpSpotInspector {
164    #[doc = "`.ctor()` — no args"]
165    pub fn new() -> Self {
166        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
167            panic!(
168                "{}
169::{}
170 failed to instantiate",
171                ::core::stringify!(HelpSpotInspector),
172                ::core::stringify!(new),
173            )
174        });
175        <Self as IHelpSpotInspectorMethods>::ctor(this);
176        this
177    }
178}
179
180#[cfg(feature = "app-helpspotinspector")]
181#[doc(hidden)]
182pub mod prelude {
183    pub use super::{HelpSpotInspector, IHelpSpotInspector, IHelpSpotInspectorMethods};
184    #[cfg(feature = "app-mapinspector")]
185    pub use crate::app::mapinspector::IMapInspectorMethods;
186    #[cfg(feature = "app-pokeinspector")]
187    pub use crate::app::pokeinspector::IPokeInspectorMethods;
188    #[cfg(feature = "app-scriptutil")]
189    pub use crate::app::scriptutil::IScriptUtilMethods;
190    #[cfg(feature = "system-object")]
191    pub use crate::system::object::IObjectMethods;
192    pub use crate::{
193        app::{mapinspector::IMapInspector, pokeinspector::IPokeInspector, scriptutil::IScriptUtil},
194        system::object::IObject,
195    };
196}