Skip to main content

engage/generated/app/
commandinspector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-commandinspector-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/commandinspector/CommandInspector.md"))]
18    #[::unity::class(namespace = "App", name = "CommandInspector")]
19    #[parent(crate::app::pokeinspector::PokeInspector)]
20    pub struct CommandInspector {
21        #[offset(80)]
22        #[rename(name = "m_Range")]
23        pub m_range: i32,
24        #[offset(88)]
25        #[rename(name = "m_Mid")]
26        pub m_mid: ::unity::Il2CppString,
27    }
28}
29
30#[cfg(feature = "app-commandinspector-types")]
31pub use __types::*;
32
33#[cfg(feature = "app-commandinspector")]
34pub trait ICommandInspectorMethods: ICommandInspector {
35    #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
36    fn ctor(self, args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
37        unsafe {
38            let __receiver = <CommandInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x252f560usize)as*mut u8,();
40(CommandInspector)__receiver,(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
41        }
42    }
43    #[doc = "`GetLabel()` overload"]
44    fn get_label(self) -> ::unity::Il2CppString {
45        unsafe {
46            let __receiver = <CommandInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            {
48                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
49                let __vi = *__vt.get(36usize).unwrap_or_else(|| {
50                    panic!(
51                        "unity: virtual slot {}
52 out of range (vtable len {}
53) on the runtime class behind {}
54 (method `{}
55`)",
56                        36usize,
57                        __vt.len(),
58                        <CommandInspector as ::unity::ClassIdentity>::NAME,
59                        "GetLabel",
60                    )
61                });
62                let __inner: extern "C" fn(CommandInspector, ::unity::OptionalMethod) -> ::unity::Il2CppString =
63                    ::core::mem::transmute(__vi.method_ptr);
64                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65                __inner(__receiver, __mi)
66            }
67        }
68    }
69    #[doc = "`GetRange()` overload"]
70    fn get_range(self) -> i32 {
71        unsafe {
72            let __receiver = <CommandInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            {
74                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
75                let __vi = *__vt.get(37usize).unwrap_or_else(|| {
76                    panic!(
77                        "unity: virtual slot {}
78 out of range (vtable len {}
79) on the runtime class behind {}
80 (method `{}
81`)",
82                        37usize,
83                        __vt.len(),
84                        <CommandInspector as ::unity::ClassIdentity>::NAME,
85                        "GetRange",
86                    )
87                });
88                let __inner: extern "C" fn(CommandInspector, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
89                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
90                __inner(__receiver, __mi)
91            }
92        }
93    }
94    #[doc = "`get_Color()` overload"]
95    fn get_color(self) -> crate::unity_engine::color::Color {
96        unsafe {
97            let __receiver = <CommandInspector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            {
99                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
101                    panic!(
102                        "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107                        11usize,
108                        __vt.len(),
109                        <CommandInspector as ::unity::ClassIdentity>::NAME,
110                        "get_Color",
111                    )
112                });
113                let __inner: extern "C" fn(CommandInspector, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
114                    ::core::mem::transmute(__vi.method_ptr);
115                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
116                __inner(__receiver, __mi)
117            }
118        }
119    }
120}
121
122#[cfg(feature = "app-commandinspector")]
123impl<__T: ICommandInspector> ICommandInspectorMethods for __T {}
124
125#[cfg(feature = "app-commandinspector")]
126impl CommandInspector {
127    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129    }
130
131    pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133    }
134
135    pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137    }
138
139    pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141    }
142}
143
144#[cfg(feature = "app-commandinspector")]
145impl CommandInspector {
146    #[doc = "Direct (non-virtual) call to `CommandInspector`'s own `GetLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
147    pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
148        let __mi = Self::get_label_method_info();
149        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
150        __inner(this.into(), ::core::option::Option::None)
151    }
152
153    #[doc = "Direct (non-virtual) call to `CommandInspector`'s own `GetRange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154    pub unsafe fn get_range(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
155        let __mi = Self::get_range_method_info();
156        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
157        __inner(this.into(), ::core::option::Option::None)
158    }
159
160    #[doc = "Direct (non-virtual) call to `CommandInspector`'s own `get_Color`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
161    pub unsafe fn get_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
162        let __mi = Self::get_color_method_info();
163        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
164            ::core::mem::transmute(__mi.method_ptr);
165        __inner(this.into(), ::core::option::Option::None)
166    }
167}
168
169#[cfg(feature = "app-commandinspector")]
170impl CommandInspector {
171    #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` — overload selector"]
172    pub fn new(args: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> Self {
173        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174            panic!(
175                "{}
176::{}
177 failed to instantiate",
178                ::core::stringify!(CommandInspector),
179                ::core::stringify!(new),
180            )
181        });
182        <Self as ICommandInspectorMethods>::ctor(this, args);
183        this
184    }
185}
186
187#[cfg(feature = "app-commandinspector")]
188#[doc(hidden)]
189pub mod prelude {
190    pub use super::{CommandInspector, ICommandInspector, ICommandInspectorMethods};
191    #[cfg(feature = "app-mapinspector")]
192    pub use crate::app::mapinspector::IMapInspectorMethods;
193    #[cfg(feature = "app-pokeinspector")]
194    pub use crate::app::pokeinspector::IPokeInspectorMethods;
195    #[cfg(feature = "app-scriptutil")]
196    pub use crate::app::scriptutil::IScriptUtilMethods;
197    #[cfg(feature = "system-object")]
198    pub use crate::system::object::IObjectMethods;
199    pub use crate::{
200        app::{mapinspector::IMapInspector, pokeinspector::IPokeInspector, scriptutil::IScriptUtil},
201        system::object::IObject,
202    };
203}