Skip to main content

engage/generated/app/
helpitemskill.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-helpitemskill-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/helpitemskill/HelpItemSkill.md"))]
20    #[::unity::class(namespace = "App", name = "HelpItemSkill")]
21    #[parent(crate::app::helpitembase::HelpItemBase)]
22    pub struct HelpItemSkill {
23        #[offset(80)]
24        #[rename(name = "m_SkillData")]
25        pub m_skill_data: crate::app::skilldata::SkillData,
26        #[offset(88)]
27        #[rename(name = "m_Unit")]
28        pub m_unit: crate::app::unit::Unit,
29        #[offset(96)]
30        #[rename(name = "m_IsForcedEngage")]
31        pub m_is_forced_engage: bool,
32        #[offset(97)]
33        #[rename(name = "m_IsForceDisplay")]
34        pub m_is_force_display: bool,
35    }
36}
37
38#[cfg(feature = "app-helpitemskill-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-helpitemskill")]
42pub trait IHelpItemSkillMethods: IHelpItemSkill {
43    #[doc = "`SetSkillData(crate::app::skilldata::SkillData, crate::app::unit::Unit, bool)` overload"]
44    fn set_skill_data(
45        self,
46        skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
47        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
48        is_forced_engage: impl ::core::convert::Into<bool>,
49    ) -> () {
50        unsafe {
51            let __receiver = <HelpItemSkill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            ::unity::il2cpp_call!((::unity::module_base()+0x297db10usize)as*mut u8,();
53(HelpItemSkill)__receiver,(crate::app::skilldata::SkillData)::core::convert::Into::into(skill),(crate::app::unit::Unit)::core::convert::Into::into(unit),(bool)::core::convert::Into::into(is_forced_engage))
54        }
55    }
56    #[doc = "`IsValid()` overload"]
57    fn is_valid(self) -> bool {
58        unsafe {
59            let __receiver = <HelpItemSkill 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                        <HelpItemSkill as ::unity::ClassIdentity>::NAME,
72                        "IsValid",
73                    )
74                });
75                let __inner: extern "C" fn(HelpItemSkill, ::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 = <HelpItemSkill 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                        <HelpItemSkill as ::unity::ClassIdentity>::NAME,
97                        "SetContents",
98                    )
99                });
100                let __inner: extern "C" fn(HelpItemSkill, 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 = "`SetForceDisplay()` overload"]
108    fn set_force_display(self) -> () {
109        unsafe {
110            let __receiver = <HelpItemSkill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x297dd20usize)as*mut u8,();
112(HelpItemSkill)__receiver)
113        }
114    }
115    #[doc = "`.ctor()` overload"]
116    fn ctor(self) -> () {
117        unsafe {
118            let __receiver = <HelpItemSkill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x297dd30usize)as*mut u8,();
120(HelpItemSkill)__receiver)
121        }
122    }
123}
124
125#[cfg(feature = "app-helpitemskill")]
126impl<__T: IHelpItemSkill> IHelpItemSkillMethods for __T {}
127
128#[cfg(feature = "app-helpitemskill")]
129impl HelpItemSkill {
130    pub fn set_skill_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
132    }
133
134    pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
136    }
137
138    pub fn set_contents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
140    }
141
142    pub fn set_force_display_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
144    }
145
146    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
148    }
149}
150
151#[cfg(feature = "app-helpitemskill")]
152impl HelpItemSkill {
153    #[doc = "Direct (non-virtual) call to `HelpItemSkill`'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 `HelpItemSkill`'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-helpitemskill")]
170impl HelpItemSkill {
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!(HelpItemSkill),
179                ::core::stringify!(new),
180            )
181        });
182        <Self as IHelpItemSkillMethods>::ctor(this);
183        this
184    }
185}
186
187#[cfg(feature = "app-helpitemskill")]
188#[doc(hidden)]
189pub mod prelude {
190    pub use super::{HelpItemSkill, IHelpItemSkill, IHelpItemSkillMethods};
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}