Skip to main content

engage/generated/app/
helpitemjob.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-helpitemjob-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::helpitembase::{HelpItemBase, IHelpItemBase},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/helpitemjob/HelpItemJob.md"))]
20    #[::unity::class(namespace = "App", name = "HelpItemJob")]
21    #[parent(crate::app::helpitembase::HelpItemBase)]
22    pub struct HelpItemJob {}
23}
24
25#[cfg(feature = "app-helpitemjob-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-helpitemjob")]
29pub trait IHelpItemJobMethods: IHelpItemJob {
30    #[doc = "`get_HelpItemType()` overload"]
31    fn get_help_item_type(self) -> crate::app::helpmanager::HelpManager_HelpItemType {
32        unsafe {
33            let __receiver = <HelpItemJob as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
34            {
35                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
36                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
37                    panic!(
38                        "unity: virtual slot {}
39 out of range (vtable len {}
40) on the runtime class behind {}
41 (method `{}
42`)",
43                        4usize,
44                        __vt.len(),
45                        <HelpItemJob as ::unity::ClassIdentity>::NAME,
46                        "get_HelpItemType",
47                    )
48                });
49                let __inner: extern "C" fn(HelpItemJob, ::unity::OptionalMethod) -> crate::app::helpmanager::HelpManager_HelpItemType =
50                    ::core::mem::transmute(__vi.method_ptr);
51                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52                __inner(__receiver, __mi)
53            }
54        }
55    }
56    #[doc = "`IsValid()` overload"]
57    fn is_valid(self) -> bool {
58        unsafe {
59            let __receiver = <HelpItemJob as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            {
61                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
62                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
63                    panic!(
64                        "unity: virtual slot {}
65 out of range (vtable len {}
66) on the runtime class behind {}
67 (method `{}
68`)",
69                        7usize,
70                        __vt.len(),
71                        <HelpItemJob as ::unity::ClassIdentity>::NAME,
72                        "IsValid",
73                    )
74                });
75                let __inner: extern "C" fn(HelpItemJob, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
76                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77                __inner(__receiver, __mi)
78            }
79        }
80    }
81    #[doc = "`SetContents(crate::app::helpparamsetter::HelpParamSetter)` overload"]
82    fn set_contents(self, setter: impl ::core::convert::Into<crate::app::helpparamsetter::HelpParamSetter>) -> () {
83        unsafe {
84            let __receiver = <HelpItemJob as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            {
86                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
88                    panic!(
89                        "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94                        6usize,
95                        __vt.len(),
96                        <HelpItemJob as ::unity::ClassIdentity>::NAME,
97                        "SetContents",
98                    )
99                });
100                let __inner: extern "C" fn(HelpItemJob, crate::app::helpparamsetter::HelpParamSetter, ::unity::OptionalMethod) -> () =
101                    ::core::mem::transmute(__vi.method_ptr);
102                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
103                __inner(__receiver, ::core::convert::Into::into(setter), __mi)
104            }
105        }
106    }
107    #[doc = "`.ctor()` overload"]
108    fn ctor(self) -> () {
109        unsafe {
110            let __receiver = <HelpItemJob as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x297d940usize)as*mut u8,();
112(HelpItemJob)__receiver)
113        }
114    }
115}
116
117#[cfg(feature = "app-helpitemjob")]
118impl<__T: IHelpItemJob> IHelpItemJobMethods for __T {}
119
120#[cfg(feature = "app-helpitemjob")]
121impl HelpItemJob {
122    pub fn get_help_item_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
124    }
125
126    pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
128    }
129
130    pub fn set_contents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
132    }
133
134    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
136    }
137}
138
139#[cfg(feature = "app-helpitemjob")]
140impl HelpItemJob {
141    #[doc = "Direct (non-virtual) call to `HelpItemJob`'s own `get_HelpItemType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
142    pub unsafe fn get_help_item_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::helpmanager::HelpManager_HelpItemType {
143        let __mi = Self::get_help_item_type_method_info();
144        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::helpmanager::HelpManager_HelpItemType =
145            ::core::mem::transmute(__mi.method_ptr);
146        __inner(this.into(), ::core::option::Option::None)
147    }
148
149    #[doc = "Direct (non-virtual) call to `HelpItemJob`'s own `IsValid`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
150    pub unsafe fn is_valid(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
151        let __mi = Self::is_valid_method_info();
152        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
153        __inner(this.into(), ::core::option::Option::None)
154    }
155
156    #[doc = "Direct (non-virtual) call to `HelpItemJob`'s own `SetContents`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
157    pub unsafe fn set_contents(this: impl ::core::convert::Into<::unity::IlInstance>, setter: crate::app::helpparamsetter::HelpParamSetter) -> () {
158        let __mi = Self::set_contents_method_info();
159        let __inner: extern "C" fn(::unity::IlInstance, crate::app::helpparamsetter::HelpParamSetter, ::unity::OptionalMethod) -> () =
160            ::core::mem::transmute(__mi.method_ptr);
161        __inner(this.into(), setter, ::core::option::Option::None)
162    }
163}
164
165#[cfg(feature = "app-helpitemjob")]
166impl HelpItemJob {
167    #[doc = "`.ctor()` — no args"]
168    pub fn new() -> Self {
169        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
170            panic!(
171                "{}
172::{}
173 failed to instantiate",
174                ::core::stringify!(HelpItemJob),
175                ::core::stringify!(new),
176            )
177        });
178        <Self as IHelpItemJobMethods>::ctor(this);
179        this
180    }
181}
182
183#[cfg(feature = "app-helpitemjob")]
184#[doc(hidden)]
185pub mod prelude {
186    pub use super::{HelpItemJob, IHelpItemJob, IHelpItemJobMethods};
187    #[cfg(feature = "app-helpitembase")]
188    pub use crate::app::helpitembase::IHelpItemBaseMethods;
189    #[cfg(feature = "system-object")]
190    pub use crate::system::object::IObjectMethods;
191    #[cfg(feature = "unity_engine-behaviour")]
192    pub use crate::unity_engine::behaviour::IBehaviourMethods;
193    #[cfg(feature = "unity_engine-component")]
194    pub use crate::unity_engine::component::IComponentMethods;
195    #[cfg(feature = "unity_engine-monobehaviour")]
196    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
197    #[cfg(feature = "unity_engine-object_2")]
198    pub use crate::unity_engine::object_2::IObject_2Methods;
199    pub use crate::{
200        app::helpitembase::IHelpItemBase,
201        system::object::IObject,
202        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
203    };
204}