Skip to main content

engage/generated/app/
tboxinspector.rs

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