engage/generated/root/
volumevoicemenuitem.rs1#[cfg(feature = "root-volumevoicemenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 root::configbasicmenuitem::{ConfigBasicMenuItem, IConfigBasicMenuItem},
11 system::object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/volumevoicemenuitem/VolumeVoiceMenuItem.md"))]
15 #[::unity::class(namespace = "", name = "VolumeVoiceMenuItem")]
16 #[parent(crate::root::configbasicmenuitem::ConfigBasicMenuItem)]
17 pub struct VolumeVoiceMenuItem {
18 #[static_field]
19 #[rename(name = "EventName")]
20 pub event_name: ::unity::Il2CppString,
21 #[static_field]
22 #[rename(name = "UnitNameF")]
23 pub unit_name_f: ::unity::Il2CppString,
24 #[static_field]
25 #[rename(name = "UnitNameM")]
26 pub unit_name_m: ::unity::Il2CppString,
27 #[static_field]
28 #[rename(name = "PlayWaitFrame")]
29 pub play_wait_frame: i32,
30 #[offset(136)]
31 #[rename(name = "m_Hero")]
32 pub m_hero: crate::app::unit::Unit,
33 #[offset(144)]
34 #[rename(name = "m_IsPlay")]
35 pub m_is_play: bool,
36 #[offset(148)]
37 #[rename(name = "m_WaitFrame")]
38 pub m_wait_frame: i32,
39 }
40}
41
42#[cfg(feature = "root-volumevoicemenuitem-types")]
43pub use __types::*;
44
45#[cfg(feature = "root-volumevoicemenuitem")]
46pub trait IVolumeVoiceMenuItemMethods: IVolumeVoiceMenuItem {
47 #[doc = "`.ctor()` overload"]
48 fn ctor(self) -> () {
49 unsafe {
50 let __receiver = <VolumeVoiceMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x21c4160usize)as*mut u8,();
52(VolumeVoiceMenuItem)__receiver)
53 }
54 }
55 #[doc = "`OnSelect()` overload"]
56 fn on_select(self) -> () {
57 unsafe {
58 let __receiver = <VolumeVoiceMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 {
60 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
62 panic!(
63 "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68 12usize,
69 __vt.len(),
70 <VolumeVoiceMenuItem as ::unity::ClassIdentity>::NAME,
71 "OnSelect",
72 )
73 });
74 let __inner: extern "C" fn(VolumeVoiceMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
75 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
76 __inner(__receiver, __mi)
77 }
78 }
79 }
80 #[doc = "`OnDeselect()` overload"]
81 fn on_deselect(self) -> () {
82 unsafe {
83 let __receiver = <VolumeVoiceMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 {
85 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
87 panic!(
88 "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93 13usize,
94 __vt.len(),
95 <VolumeVoiceMenuItem as ::unity::ClassIdentity>::NAME,
96 "OnDeselect",
97 )
98 });
99 let __inner: extern "C" fn(VolumeVoiceMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(__receiver, __mi)
102 }
103 }
104 }
105 #[doc = "`Tick()` overload"]
106 fn tick(self) -> () {
107 unsafe {
108 let __receiver = <VolumeVoiceMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 {
110 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
112 panic!(
113 "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118 9usize,
119 __vt.len(),
120 <VolumeVoiceMenuItem as ::unity::ClassIdentity>::NAME,
121 "Tick",
122 )
123 });
124 let __inner: extern "C" fn(VolumeVoiceMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
125 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126 __inner(__receiver, __mi)
127 }
128 }
129 }
130 #[doc = "`CustomCall()` overload"]
131 fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
132 unsafe {
133 let __receiver = <VolumeVoiceMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 {
135 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
137 panic!(
138 "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143 26usize,
144 __vt.len(),
145 <VolumeVoiceMenuItem as ::unity::ClassIdentity>::NAME,
146 "CustomCall",
147 )
148 });
149 let __inner: extern "C" fn(VolumeVoiceMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
150 ::core::mem::transmute(__vi.method_ptr);
151 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152 __inner(__receiver, __mi)
153 }
154 }
155 }
156 #[doc = "`InitContent()` overload"]
157 fn init_content(self) -> () {
158 unsafe {
159 let __receiver = <VolumeVoiceMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 {
161 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
163 panic!(
164 "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169 27usize,
170 __vt.len(),
171 <VolumeVoiceMenuItem as ::unity::ClassIdentity>::NAME,
172 "InitContent",
173 )
174 });
175 let __inner: extern "C" fn(VolumeVoiceMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
176 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177 __inner(__receiver, __mi)
178 }
179 }
180 }
181 #[doc = "`SetHelpText()` overload"]
182 fn set_help_text(self) -> () {
183 unsafe {
184 let __receiver = <VolumeVoiceMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x21c42f0usize)as*mut u8,();
186(VolumeVoiceMenuItem)__receiver)
187 }
188 }
189}
190
191#[cfg(feature = "root-volumevoicemenuitem")]
192impl<__T: IVolumeVoiceMenuItem> IVolumeVoiceMenuItemMethods for __T {}
193
194#[cfg(feature = "root-volumevoicemenuitem")]
195impl VolumeVoiceMenuItem {
196 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
198 }
199
200 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
202 }
203
204 pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
206 }
207
208 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
210 }
211
212 pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
214 }
215
216 pub fn init_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
218 }
219
220 pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
222 }
223}
224
225#[cfg(feature = "root-volumevoicemenuitem")]
226impl VolumeVoiceMenuItem {
227 #[doc = "Direct (non-virtual) call to `VolumeVoiceMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
228 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
229 let __mi = Self::on_select_method_info();
230 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
231 __inner(this.into(), ::core::option::Option::None)
232 }
233
234 #[doc = "Direct (non-virtual) call to `VolumeVoiceMenuItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
235 pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
236 let __mi = Self::on_deselect_method_info();
237 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
238 __inner(this.into(), ::core::option::Option::None)
239 }
240
241 #[doc = "Direct (non-virtual) call to `VolumeVoiceMenuItem`'s own `Tick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
242 pub unsafe fn tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
243 let __mi = Self::tick_method_info();
244 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
245 __inner(this.into(), ::core::option::Option::None)
246 }
247
248 #[doc = "Direct (non-virtual) call to `VolumeVoiceMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
249 pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
250 let __mi = Self::custom_call_method_info();
251 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
252 ::core::mem::transmute(__mi.method_ptr);
253 __inner(this.into(), ::core::option::Option::None)
254 }
255
256 #[doc = "Direct (non-virtual) call to `VolumeVoiceMenuItem`'s own `InitContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257 pub unsafe fn init_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
258 let __mi = Self::init_content_method_info();
259 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
260 __inner(this.into(), ::core::option::Option::None)
261 }
262}
263
264#[cfg(feature = "root-volumevoicemenuitem")]
265impl VolumeVoiceMenuItem {
266 #[doc = "`.ctor()` — no args"]
267 pub fn new() -> Self {
268 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
269 panic!(
270 "{}
271::{}
272 failed to instantiate",
273 ::core::stringify!(VolumeVoiceMenuItem),
274 ::core::stringify!(new),
275 )
276 });
277 <Self as IVolumeVoiceMenuItemMethods>::ctor(this);
278 this
279 }
280}
281
282#[cfg(feature = "root-volumevoicemenuitem")]
283#[doc(hidden)]
284pub mod prelude {
285 pub use super::{IVolumeVoiceMenuItem, IVolumeVoiceMenuItemMethods, VolumeVoiceMenuItem};
286 #[cfg(feature = "app-basicmenuitem")]
287 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
288 #[cfg(feature = "root-configbasicmenuitem")]
289 pub use crate::root::configbasicmenuitem::IConfigBasicMenuItemMethods;
290 #[cfg(feature = "system-object")]
291 pub use crate::system::object::IObjectMethods;
292 pub use crate::{app::basicmenuitem::IBasicMenuItem, root::configbasicmenuitem::IConfigBasicMenuItem, system::object::IObject};
293}