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