1#[cfg(feature = "app-myroomsoundmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomsoundmenuitem/MyRoomSoundMenuItem.md"))]
14 #[::unity::class(namespace = "App", name = "MyRoomSoundMenuItem")]
15 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16 pub struct MyRoomSoundMenuItem {
17 #[offset(112)]
18 #[rename(name = "m_eventName")]
19 pub m_event_name: ::unity::Il2CppString,
20 #[offset(120)]
21 #[rename(name = "m_label")]
22 pub m_label: ::unity::Il2CppString,
23 #[offset(128)]
24 #[rename(name = "m_help")]
25 pub m_help: ::unity::Il2CppString,
26 }
27}
28
29#[cfg(feature = "app-myroomsoundmenuitem-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-myroomsoundmenuitem")]
33pub trait IMyRoomSoundMenuItemMethods: IMyRoomSoundMenuItem {
34 #[doc = "`get_Callback()` overload"]
35 fn get_callback(self) -> crate::system::action_1::Action_1<::unity::Il2CppString> {
36 unsafe {
37 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x23a0e60usize)as*mut u8,crate::system::action_1::Action_1< ::unity::Il2CppString> ;
39(MyRoomSoundMenuItem)__receiver)
40 }
41 }
42 #[doc = "`get_IsPlay()` overload"]
43 fn get_is_play(self) -> bool {
44 unsafe {
45 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x23a0330usize)as*mut u8,bool;
47(MyRoomSoundMenuItem)__receiver)
48 }
49 }
50 #[doc = "`get_EventName()` overload"]
51 fn get_event_name(self) -> ::unity::Il2CppString {
52 unsafe {
53 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x23a0e70usize)as*mut u8, ::unity::Il2CppString;
55(MyRoomSoundMenuItem)__receiver)
56 }
57 }
58 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::action_1::Action_1<::unity::Il2CppString>)` overload"]
59 fn ctor(
60 self,
61 event_name: impl ::core::convert::Into<::unity::Il2CppString>,
62 name: impl ::core::convert::Into<::unity::Il2CppString>,
63 help: impl ::core::convert::Into<::unity::Il2CppString>,
64 callback: impl ::core::convert::Into<crate::system::action_1::Action_1<::unity::Il2CppString>>,
65 ) -> () {
66 unsafe {
67 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x239f010usize)as*mut u8,();
69(MyRoomSoundMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(event_name),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(help),(crate::system::action_1::Action_1< ::unity::Il2CppString>)::core::convert::Into::into(callback))
70 }
71 }
72 #[doc = "`GetName()` overload"]
73 fn get_name(self) -> ::unity::Il2CppString {
74 unsafe {
75 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 {
77 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
79 panic!(
80 "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85 4usize,
86 __vt.len(),
87 <MyRoomSoundMenuItem as ::unity::ClassIdentity>::NAME,
88 "GetName",
89 )
90 });
91 let __inner: extern "C" fn(MyRoomSoundMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
92 ::core::mem::transmute(__vi.method_ptr);
93 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94 __inner(__receiver, __mi)
95 }
96 }
97 }
98 #[doc = "`BuildAttribute()` overload"]
99 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
100 unsafe {
101 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 {
103 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
105 panic!(
106 "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111 8usize,
112 __vt.len(),
113 <MyRoomSoundMenuItem as ::unity::ClassIdentity>::NAME,
114 "BuildAttribute",
115 )
116 });
117 let __inner: extern "C" fn(MyRoomSoundMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
118 ::core::mem::transmute(__vi.method_ptr);
119 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120 __inner(__receiver, __mi)
121 }
122 }
123 }
124 #[doc = "`OnSelect()` overload"]
125 fn on_select(self) -> () {
126 unsafe {
127 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 {
129 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
130 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
131 panic!(
132 "unity: virtual slot {}
133 out of range (vtable len {}
134) on the runtime class behind {}
135 (method `{}
136`)",
137 12usize,
138 __vt.len(),
139 <MyRoomSoundMenuItem as ::unity::ClassIdentity>::NAME,
140 "OnSelect",
141 )
142 });
143 let __inner: extern "C" fn(MyRoomSoundMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
144 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145 __inner(__receiver, __mi)
146 }
147 }
148 }
149 #[doc = "`ACall()` overload"]
150 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
151 unsafe {
152 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 {
154 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
156 panic!(
157 "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162 18usize,
163 __vt.len(),
164 <MyRoomSoundMenuItem as ::unity::ClassIdentity>::NAME,
165 "ACall",
166 )
167 });
168 let __inner: extern "C" fn(MyRoomSoundMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
169 ::core::mem::transmute(__vi.method_ptr);
170 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171 __inner(__receiver, __mi)
172 }
173 }
174 }
175 #[doc = "`BCall()` overload"]
176 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
177 unsafe {
178 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 {
180 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
181 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
182 panic!(
183 "unity: virtual slot {}
184 out of range (vtable len {}
185) on the runtime class behind {}
186 (method `{}
187`)",
188 19usize,
189 __vt.len(),
190 <MyRoomSoundMenuItem as ::unity::ClassIdentity>::NAME,
191 "BCall",
192 )
193 });
194 let __inner: extern "C" fn(MyRoomSoundMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
195 ::core::mem::transmute(__vi.method_ptr);
196 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197 __inner(__receiver, __mi)
198 }
199 }
200 }
201 #[doc = "`OnCursorMoveEnd()` overload"]
202 fn on_cursor_move_end(self) -> () {
203 unsafe {
204 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 {
206 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
207 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
208 panic!(
209 "unity: virtual slot {}
210 out of range (vtable len {}
211) on the runtime class behind {}
212 (method `{}
213`)",
214 14usize,
215 __vt.len(),
216 <MyRoomSoundMenuItem as ::unity::ClassIdentity>::NAME,
217 "OnCursorMoveEnd",
218 )
219 });
220 let __inner: extern "C" fn(MyRoomSoundMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
221 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
222 __inner(__receiver, __mi)
223 }
224 }
225 }
226 #[doc = "`SetCurrentMusicName()` overload"]
227 fn set_current_music_name(self) -> () {
228 unsafe {
229 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230 ::unity::il2cpp_call!((::unity::module_base()+0x23a0770usize)as*mut u8,();
231(MyRoomSoundMenuItem)__receiver)
232 }
233 }
234 #[doc = "`SetMusicName(::unity::Il2CppString)` overload"]
235 fn set_music_name(self, music_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
236 unsafe {
237 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238 ::unity::il2cpp_call!((::unity::module_base()+0x23a12a0usize)as*mut u8,();
239(MyRoomSoundMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(music_name))
240 }
241 }
242 #[doc = "`SetMusicHelpText(::unity::Il2CppString)` overload"]
243 fn set_music_help_text(self, text: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
244 unsafe {
245 let __receiver = <MyRoomSoundMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x23a1110usize)as*mut u8,();
247(MyRoomSoundMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text))
248 }
249 }
250}
251
252#[cfg(feature = "app-myroomsoundmenuitem")]
253impl<__T: IMyRoomSoundMenuItem> IMyRoomSoundMenuItemMethods for __T {}
254
255#[cfg(feature = "app-myroomsoundmenuitem")]
256impl MyRoomSoundMenuItem {
257 pub fn get_callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
259 }
260
261 pub fn get_is_play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
263 }
264
265 pub fn get_event_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
267 }
268
269 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
271 }
272
273 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
275 }
276
277 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
279 }
280
281 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
283 }
284
285 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
287 }
288
289 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
291 }
292
293 pub fn on_cursor_move_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
295 }
296
297 pub fn set_current_music_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
299 }
300
301 pub fn set_music_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
303 }
304
305 pub fn set_music_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
307 }
308}
309
310#[cfg(feature = "app-myroomsoundmenuitem")]
311impl MyRoomSoundMenuItem {
312 #[doc = "Direct (non-virtual) call to `MyRoomSoundMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
313 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
314 let __mi = Self::get_name_method_info();
315 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
316 __inner(this.into(), ::core::option::Option::None)
317 }
318
319 #[doc = "Direct (non-virtual) call to `MyRoomSoundMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
321 let __mi = Self::build_attribute_method_info();
322 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
323 ::core::mem::transmute(__mi.method_ptr);
324 __inner(this.into(), ::core::option::Option::None)
325 }
326
327 #[doc = "Direct (non-virtual) call to `MyRoomSoundMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
328 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
329 let __mi = Self::on_select_method_info();
330 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
331 __inner(this.into(), ::core::option::Option::None)
332 }
333
334 #[doc = "Direct (non-virtual) call to `MyRoomSoundMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
335 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
336 let __mi = Self::a_call_method_info();
337 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
338 ::core::mem::transmute(__mi.method_ptr);
339 __inner(this.into(), ::core::option::Option::None)
340 }
341
342 #[doc = "Direct (non-virtual) call to `MyRoomSoundMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
343 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
344 let __mi = Self::b_call_method_info();
345 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
346 ::core::mem::transmute(__mi.method_ptr);
347 __inner(this.into(), ::core::option::Option::None)
348 }
349
350 #[doc = "Direct (non-virtual) call to `MyRoomSoundMenuItem`'s own `OnCursorMoveEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
351 pub unsafe fn on_cursor_move_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
352 let __mi = Self::on_cursor_move_end_method_info();
353 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
354 __inner(this.into(), ::core::option::Option::None)
355 }
356}
357
358#[cfg(feature = "app-myroomsoundmenuitem")]
359impl MyRoomSoundMenuItem {
360 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::action_1::Action_1<::unity::Il2CppString>)` — overload selector"]
361 pub fn new(
362 event_name: ::unity::Il2CppString,
363 name: ::unity::Il2CppString,
364 help: ::unity::Il2CppString,
365 callback: crate::system::action_1::Action_1<::unity::Il2CppString>,
366 ) -> Self {
367 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
368 panic!(
369 "{}
370::{}
371 failed to instantiate",
372 ::core::stringify!(MyRoomSoundMenuItem),
373 ::core::stringify!(new),
374 )
375 });
376 <Self as IMyRoomSoundMenuItemMethods>::ctor(this, event_name, name, help, callback);
377 this
378 }
379}
380
381#[cfg(feature = "app-myroomsoundmenuitem")]
382#[doc(hidden)]
383pub mod prelude {
384 pub use super::{IMyRoomSoundMenuItem, IMyRoomSoundMenuItemMethods, MyRoomSoundMenuItem};
385 #[cfg(feature = "app-basicmenuitem")]
386 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
387 #[cfg(feature = "system-object")]
388 pub use crate::system::object::IObjectMethods;
389 pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
390}