1#[cfg(feature = "app-helpitembase-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/helpitembase/HelpItemBase.md"))]
19 #[::unity::class(namespace = "App", name = "HelpItemBase")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct HelpItemBase {
22 #[offset(24)]
23 #[rename(name = "m_isTempGod")]
24 pub m_is_temp_god: bool,
25 #[offset(32)]
26 #[rename(name = "m_tempGod")]
27 pub m_temp_god: crate::app::godunit::GodUnit,
28 #[offset(40)]
29 #[rename(name = "m_isTempRing")]
30 pub m_is_temp_ring: bool,
31 #[offset(48)]
32 #[rename(name = "m_tempRing")]
33 pub m_temp_ring: crate::app::unitring::UnitRing,
34 #[offset(56)]
35 #[rename(name = "m_isTempUnit")]
36 pub m_is_temp_unit: bool,
37 #[offset(64)]
38 #[rename(name = "m_tempUnit")]
39 pub m_temp_unit: crate::app::unit::Unit,
40 #[offset(72)]
41 #[rename(name = "m_startItemPriority")]
42 pub m_start_item_priority: i32,
43 #[offset(76)]
44 #[rename(name = "m_HelpItemType")]
45 pub m_help_item_type: crate::app::helpmanager::HelpManager_HelpItemType,
46 }
47}
48
49#[cfg(feature = "app-helpitembase-types")]
50pub use __types::*;
51
52#[cfg(feature = "app-helpitembase")]
53pub trait IHelpItemBaseMethods: IHelpItemBase {
54 #[doc = "`get_StartItemPriority()` overload"]
55 fn get_start_item_priority(self) -> i32 {
56 unsafe {
57 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x297bf60usize)as*mut u8,i32;
59(HelpItemBase)__receiver)
60 }
61 }
62 #[doc = "`get_HelpItemType()` overload"]
63 fn get_help_item_type(self) -> crate::app::helpmanager::HelpManager_HelpItemType {
64 unsafe {
65 let __receiver = <HelpItemBase 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(4usize).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 4usize,
76 __vt.len(),
77 <HelpItemBase as ::unity::ClassIdentity>::NAME,
78 "get_HelpItemType",
79 )
80 });
81 let __inner: extern "C" fn(HelpItemBase, ::unity::OptionalMethod) -> crate::app::helpmanager::HelpManager_HelpItemType =
82 ::core::mem::transmute(__vi.method_ptr);
83 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84 __inner(__receiver, __mi)
85 }
86 }
87 }
88 #[doc = "`get_StartItemConstPriority()` overload"]
89 fn get_start_item_const_priority(self) -> i32 {
90 unsafe {
91 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 {
93 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
95 panic!(
96 "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101 5usize,
102 __vt.len(),
103 <HelpItemBase as ::unity::ClassIdentity>::NAME,
104 "get_StartItemConstPriority",
105 )
106 });
107 let __inner: extern "C" fn(HelpItemBase, ::unity::OptionalMethod) -> i32 = ::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 = "`SetContents(crate::app::helpparamsetter::HelpParamSetter)` overload"]
114 fn set_contents(self, setter: impl ::core::convert::Into<crate::app::helpparamsetter::HelpParamSetter>) -> () {
115 unsafe {
116 let __receiver = <HelpItemBase 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(6usize).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 6usize,
127 __vt.len(),
128 <HelpItemBase as ::unity::ClassIdentity>::NAME,
129 "SetContents",
130 )
131 });
132 let __inner: extern "C" fn(HelpItemBase, crate::app::helpparamsetter::HelpParamSetter, ::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(setter), __mi)
136 }
137 }
138 }
139 #[doc = "`IsValid()` overload"]
140 fn is_valid(self) -> bool {
141 unsafe {
142 let __receiver = <HelpItemBase 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(7usize).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 7usize,
153 __vt.len(),
154 <HelpItemBase as ::unity::ClassIdentity>::NAME,
155 "IsValid",
156 )
157 });
158 let __inner: extern "C" fn(HelpItemBase, ::unity::OptionalMethod) -> bool = ::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 #[doc = "`get_CurrentUnit()` overload"]
165 fn get_current_unit(self) -> crate::app::unit::Unit {
166 unsafe {
167 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x297bf90usize)as*mut u8,crate::app::unit::Unit;
169(HelpItemBase)__receiver)
170 }
171 }
172 #[doc = "`SetTempGod(bool, crate::app::godunit::GodUnit)` overload"]
173 fn set_temp_god(self, is_temp_god: impl ::core::convert::Into<bool>, god: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> () {
174 unsafe {
175 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x297c010usize)as*mut u8,();
177(HelpItemBase)__receiver,(bool)::core::convert::Into::into(is_temp_god),(crate::app::godunit::GodUnit)::core::convert::Into::into(god))
178 }
179 }
180 #[doc = "`IsTempGod()` overload"]
181 fn is_temp_god(self) -> bool {
182 unsafe {
183 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x297c030usize)as*mut u8,bool;
185(HelpItemBase)__receiver)
186 }
187 }
188 #[doc = "`GetTempGod()` overload"]
189 fn get_temp_god(self) -> crate::app::godunit::GodUnit {
190 unsafe {
191 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x297c040usize)as*mut u8,crate::app::godunit::GodUnit;
193(HelpItemBase)__receiver)
194 }
195 }
196 #[doc = "`SetTempRing(bool, crate::app::unitring::UnitRing)` overload"]
197 fn set_temp_ring(self, is_temp_ring: impl ::core::convert::Into<bool>, ring: impl ::core::convert::Into<crate::app::unitring::UnitRing>) -> () {
198 unsafe {
199 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x297c050usize)as*mut u8,();
201(HelpItemBase)__receiver,(bool)::core::convert::Into::into(is_temp_ring),(crate::app::unitring::UnitRing)::core::convert::Into::into(ring))
202 }
203 }
204 #[doc = "`IsTempRing()` overload"]
205 fn is_temp_ring(self) -> bool {
206 unsafe {
207 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x297c070usize)as*mut u8,bool;
209(HelpItemBase)__receiver)
210 }
211 }
212 #[doc = "`GetTempRing()` overload"]
213 fn get_temp_ring(self) -> crate::app::unitring::UnitRing {
214 unsafe {
215 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x297c080usize)as*mut u8,crate::app::unitring::UnitRing;
217(HelpItemBase)__receiver)
218 }
219 }
220 #[doc = "`SetTempUnit(bool, crate::app::unit::Unit)` overload"]
221 fn set_temp_unit(self, is_temp_unit: impl ::core::convert::Into<bool>, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
222 unsafe {
223 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x297c090usize)as*mut u8,();
225(HelpItemBase)__receiver,(bool)::core::convert::Into::into(is_temp_unit),(crate::app::unit::Unit)::core::convert::Into::into(unit))
226 }
227 }
228 #[doc = "`.ctor()` overload"]
229 fn ctor(self) -> () {
230 unsafe {
231 let __receiver = <HelpItemBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 ::unity::il2cpp_call!((::unity::module_base()+0x297c0b0usize)as*mut u8,();
233(HelpItemBase)__receiver)
234 }
235 }
236}
237
238#[cfg(feature = "app-helpitembase")]
239impl<__T: IHelpItemBase> IHelpItemBaseMethods for __T {}
240
241#[cfg(feature = "app-helpitembase")]
242impl HelpItemBase {
243 pub fn get_start_item_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
245 }
246
247 pub fn get_help_item_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
249 }
250
251 pub fn get_start_item_const_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
253 }
254
255 pub fn set_contents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
257 }
258
259 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
261 }
262
263 pub fn get_current_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
265 }
266
267 pub fn set_temp_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
269 }
270
271 pub fn is_temp_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
273 }
274
275 pub fn get_temp_god_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
277 }
278
279 pub fn set_temp_ring_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
281 }
282
283 pub fn is_temp_ring_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
285 }
286
287 pub fn get_temp_ring_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
289 }
290
291 pub fn set_temp_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
293 }
294
295 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
297 }
298}
299
300#[cfg(feature = "app-helpitembase")]
301impl HelpItemBase {
302 #[doc = "Direct (non-virtual) call to `HelpItemBase`'s own `get_HelpItemType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
303 pub unsafe fn get_help_item_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::helpmanager::HelpManager_HelpItemType {
304 let __mi = Self::get_help_item_type_method_info();
305 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::helpmanager::HelpManager_HelpItemType =
306 ::core::mem::transmute(__mi.method_ptr);
307 __inner(this.into(), ::core::option::Option::None)
308 }
309
310 #[doc = "Direct (non-virtual) call to `HelpItemBase`'s own `get_StartItemConstPriority`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
311 pub unsafe fn get_start_item_const_priority(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
312 let __mi = Self::get_start_item_const_priority_method_info();
313 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
314 __inner(this.into(), ::core::option::Option::None)
315 }
316
317 #[doc = "Direct (non-virtual) call to `HelpItemBase`'s own `SetContents`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
318 pub unsafe fn set_contents(this: impl ::core::convert::Into<::unity::IlInstance>, setter: crate::app::helpparamsetter::HelpParamSetter) -> () {
319 let __mi = Self::set_contents_method_info();
320 let __inner: extern "C" fn(::unity::IlInstance, crate::app::helpparamsetter::HelpParamSetter, ::unity::OptionalMethod) -> () =
321 ::core::mem::transmute(__mi.method_ptr);
322 __inner(this.into(), setter, ::core::option::Option::None)
323 }
324
325 #[doc = "Direct (non-virtual) call to `HelpItemBase`'s own `IsValid`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
326 pub unsafe fn is_valid(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
327 let __mi = Self::is_valid_method_info();
328 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
329 __inner(this.into(), ::core::option::Option::None)
330 }
331}
332
333#[cfg(feature = "app-helpitembase")]
334impl HelpItemBase {
335 #[doc = "`.ctor()` — no args"]
336 pub fn new() -> Self {
337 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
338 panic!(
339 "{}
340::{}
341 failed to instantiate",
342 ::core::stringify!(HelpItemBase),
343 ::core::stringify!(new),
344 )
345 });
346 <Self as IHelpItemBaseMethods>::ctor(this);
347 this
348 }
349}
350
351#[cfg(feature = "app-helpitembase")]
352#[doc(hidden)]
353pub mod prelude {
354 pub use super::{HelpItemBase, IHelpItemBase, IHelpItemBaseMethods};
355 #[cfg(feature = "system-object")]
356 pub use crate::system::object::IObjectMethods;
357 #[cfg(feature = "unity_engine-behaviour")]
358 pub use crate::unity_engine::behaviour::IBehaviourMethods;
359 #[cfg(feature = "unity_engine-component")]
360 pub use crate::unity_engine::component::IComponentMethods;
361 #[cfg(feature = "unity_engine-monobehaviour")]
362 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
363 #[cfg(feature = "unity_engine-object_2")]
364 pub use crate::unity_engine::object_2::IObject_2Methods;
365 pub use crate::{
366 system::object::IObject,
367 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
368 };
369}