1#[cfg(feature = "app-soundtestplayer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::bgmplayer::{BgmPlayer, IBgmPlayer},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/soundtestplayer/SoundTestPlayer.md"))]
14 #[::unity::class(namespace = "App", name = "SoundTestPlayer")]
15 #[parent(crate::app::bgmplayer::BgmPlayer)]
16 pub struct SoundTestPlayer {
17 #[offset(16)]
18 #[rename(name = "m_handle")]
19 pub m_handle: crate::app::gamesound::GameSound_Handle,
20 #[offset(24)]
21 #[rename(name = "m_currentPause")]
22 pub m_current_pause: bool,
23 #[offset(32)]
24 #[rename(name = "m_soundList")]
25 pub m_sound_list: crate::system::collections::generic::list_1::List_1<crate::app::gamesound::GameSound_Handle>,
26 }
27}
28
29#[cfg(feature = "app-soundtestplayer-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-soundtestplayer")]
33pub trait ISoundTestPlayerMethods: ISoundTestPlayer {
34 #[doc = "`PauseCurrentBgm()` overload"]
35 fn pause_current_bgm(self) -> () {
36 unsafe {
37 let __receiver = <SoundTestPlayer 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 <SoundTestPlayer as ::unity::ClassIdentity>::NAME,
50 "PauseCurrentBgm",
51 )
52 });
53 let __inner: extern "C" fn(SoundTestPlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
54 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
55 __inner(__receiver, __mi)
56 }
57 }
58 }
59 #[doc = "`IsPlaying()` overload"]
60 fn is_playing(self) -> bool {
61 unsafe {
62 let __receiver = <SoundTestPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 {
64 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
65 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
66 panic!(
67 "unity: virtual slot {}
68 out of range (vtable len {}
69) on the runtime class behind {}
70 (method `{}
71`)",
72 5usize,
73 __vt.len(),
74 <SoundTestPlayer as ::unity::ClassIdentity>::NAME,
75 "IsPlaying",
76 )
77 });
78 let __inner: extern "C" fn(SoundTestPlayer, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
79 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80 __inner(__receiver, __mi)
81 }
82 }
83 }
84 #[doc = "`IsPlaying(::unity::Il2CppString)` overload"]
85 fn is_playing_2(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
86 unsafe {
87 let __receiver = <SoundTestPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 {
89 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
90 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
91 panic!(
92 "unity: virtual slot {}
93 out of range (vtable len {}
94) on the runtime class behind {}
95 (method `{}
96`)",
97 6usize,
98 __vt.len(),
99 <SoundTestPlayer as ::unity::ClassIdentity>::NAME,
100 "IsPlaying",
101 )
102 });
103 let __inner: extern "C" fn(SoundTestPlayer, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
104 ::core::mem::transmute(__vi.method_ptr);
105 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
106 __inner(__receiver, ::core::convert::Into::into(event_name), __mi)
107 }
108 }
109 }
110 #[doc = "`Play(::unity::Il2CppString)` overload"]
111 fn play(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
112 unsafe {
113 let __receiver = <SoundTestPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 {
115 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
117 panic!(
118 "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123 7usize,
124 __vt.len(),
125 <SoundTestPlayer as ::unity::ClassIdentity>::NAME,
126 "Play",
127 )
128 });
129 let __inner: extern "C" fn(SoundTestPlayer, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
130 ::core::mem::transmute(__vi.method_ptr);
131 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
132 __inner(__receiver, ::core::convert::Into::into(event_name), __mi)
133 }
134 }
135 }
136 #[doc = "`Stop()` overload"]
137 fn stop(self) -> () {
138 unsafe {
139 let __receiver = <SoundTestPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 {
141 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
143 panic!(
144 "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149 9usize,
150 __vt.len(),
151 <SoundTestPlayer as ::unity::ClassIdentity>::NAME,
152 "Stop",
153 )
154 });
155 let __inner: extern "C" fn(SoundTestPlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
156 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157 __inner(__receiver, __mi)
158 }
159 }
160 }
161 #[doc = "`Tick(crate::app::myroomsoundmenu::MyRoomSoundMenu)` overload"]
162 fn tick(self, menu: impl ::core::convert::Into<crate::app::myroomsoundmenu::MyRoomSoundMenu>) -> () {
163 unsafe {
164 let __receiver = <SoundTestPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 {
166 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
167 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
168 panic!(
169 "unity: virtual slot {}
170 out of range (vtable len {}
171) on the runtime class behind {}
172 (method `{}
173`)",
174 10usize,
175 __vt.len(),
176 <SoundTestPlayer as ::unity::ClassIdentity>::NAME,
177 "Tick",
178 )
179 });
180 let __inner: extern "C" fn(SoundTestPlayer, crate::app::myroomsoundmenu::MyRoomSoundMenu, ::unity::OptionalMethod) -> () =
181 ::core::mem::transmute(__vi.method_ptr);
182 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
183 __inner(__receiver, ::core::convert::Into::into(menu), __mi)
184 }
185 }
186 }
187 #[doc = "`Close()` overload"]
188 fn close(self) -> () {
189 unsafe {
190 let __receiver = <SoundTestPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 {
192 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
193 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
194 panic!(
195 "unity: virtual slot {}
196 out of range (vtable len {}
197) on the runtime class behind {}
198 (method `{}
199`)",
200 11usize,
201 __vt.len(),
202 <SoundTestPlayer as ::unity::ClassIdentity>::NAME,
203 "Close",
204 )
205 });
206 let __inner: extern "C" fn(SoundTestPlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
207 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
208 __inner(__receiver, __mi)
209 }
210 }
211 }
212 #[doc = "`.ctor()` overload"]
213 fn ctor(self) -> () {
214 unsafe {
215 let __receiver = <SoundTestPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x24fc6a0usize)as*mut u8,();
217(SoundTestPlayer)__receiver)
218 }
219 }
220}
221
222#[cfg(feature = "app-soundtestplayer")]
223impl<__T: ISoundTestPlayer> ISoundTestPlayerMethods for __T {}
224
225#[cfg(feature = "app-soundtestplayer")]
226impl SoundTestPlayer {
227 pub fn pause_current_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
229 }
230
231 pub fn is_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
233 }
234
235 pub fn is_playing_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
237 }
238
239 pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
241 }
242
243 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
245 }
246
247 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
249 }
250
251 pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
253 }
254
255 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
257 }
258}
259
260#[cfg(feature = "app-soundtestplayer")]
261impl SoundTestPlayer {
262 #[doc = "Direct (non-virtual) call to `SoundTestPlayer`'s own `PauseCurrentBgm`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
263 pub unsafe fn pause_current_bgm(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
264 let __mi = Self::pause_current_bgm_method_info();
265 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
266 __inner(this.into(), ::core::option::Option::None)
267 }
268
269 #[doc = "Direct (non-virtual) call to `SoundTestPlayer`'s own `IsPlaying`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
270 pub unsafe fn is_playing(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
271 let __mi = Self::is_playing_method_info();
272 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
273 __inner(this.into(), ::core::option::Option::None)
274 }
275
276 #[doc = "Direct (non-virtual) call to `SoundTestPlayer`'s own `IsPlaying`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
277 pub unsafe fn is_playing_2(this: impl ::core::convert::Into<::unity::IlInstance>, event_name: ::unity::Il2CppString) -> bool {
278 let __mi = Self::is_playing_2_method_info();
279 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
280 ::core::mem::transmute(__mi.method_ptr);
281 __inner(this.into(), event_name, ::core::option::Option::None)
282 }
283
284 #[doc = "Direct (non-virtual) call to `SoundTestPlayer`'s own `Play`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
285 pub unsafe fn play(this: impl ::core::convert::Into<::unity::IlInstance>, event_name: ::unity::Il2CppString) -> () {
286 let __mi = Self::play_method_info();
287 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
288 ::core::mem::transmute(__mi.method_ptr);
289 __inner(this.into(), event_name, ::core::option::Option::None)
290 }
291
292 #[doc = "Direct (non-virtual) call to `SoundTestPlayer`'s own `Stop`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
293 pub unsafe fn stop(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
294 let __mi = Self::stop_method_info();
295 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
296 __inner(this.into(), ::core::option::Option::None)
297 }
298
299 #[doc = "Direct (non-virtual) call to `SoundTestPlayer`'s own `Tick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
300 pub unsafe fn tick(this: impl ::core::convert::Into<::unity::IlInstance>, menu: crate::app::myroomsoundmenu::MyRoomSoundMenu) -> () {
301 let __mi = Self::tick_method_info();
302 let __inner: extern "C" fn(::unity::IlInstance, crate::app::myroomsoundmenu::MyRoomSoundMenu, ::unity::OptionalMethod) -> () =
303 ::core::mem::transmute(__mi.method_ptr);
304 __inner(this.into(), menu, ::core::option::Option::None)
305 }
306
307 #[doc = "Direct (non-virtual) call to `SoundTestPlayer`'s own `Close`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308 pub unsafe fn close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
309 let __mi = Self::close_method_info();
310 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
311 __inner(this.into(), ::core::option::Option::None)
312 }
313}
314
315#[cfg(feature = "app-soundtestplayer")]
316impl SoundTestPlayer {
317 #[doc = "`.ctor()` — no args"]
318 pub fn new() -> Self {
319 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
320 panic!(
321 "{}
322::{}
323 failed to instantiate",
324 ::core::stringify!(SoundTestPlayer),
325 ::core::stringify!(new),
326 )
327 });
328 <Self as ISoundTestPlayerMethods>::ctor(this);
329 this
330 }
331}
332
333#[cfg(feature = "app-soundtestplayer")]
334#[doc(hidden)]
335pub mod prelude {
336 pub use super::{ISoundTestPlayer, ISoundTestPlayerMethods, SoundTestPlayer};
337 #[cfg(feature = "app-bgmplayer")]
338 pub use crate::app::bgmplayer::IBgmPlayerMethods;
339 #[cfg(feature = "system-object")]
340 pub use crate::system::object::IObjectMethods;
341 pub use crate::{app::bgmplayer::IBgmPlayer, system::object::IObject};
342}