Skip to main content

engage/generated/app/
helpitemefficacy.rs

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