engage/generated/app/
bgmselectplayer.rs1#[cfg(feature = "app-bgmselectplayer-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/bgmselectplayer/BgmSelectPlayer.md"))]
14 #[::unity::class(namespace = "App", name = "BgmSelectPlayer")]
15 #[parent(crate::app::bgmplayer::BgmPlayer)]
16 pub struct BgmSelectPlayer {
17 #[offset(16)]
18 #[rename(name = "m_handle")]
19 pub m_handle: crate::app::gamesound::GameSound_Handle,
20 #[offset(24)]
21 #[rename(name = "m_soundList")]
22 pub m_sound_list: crate::system::collections::generic::list_1::List_1<crate::app::gamesound::GameSound_Handle>,
23 }
24}
25
26#[cfg(feature = "app-bgmselectplayer-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-bgmselectplayer")]
30pub trait IBgmSelectPlayerMethods: IBgmSelectPlayer {
31 #[doc = "`Finalize()` overload"]
32 fn finalize(self) -> () {
33 unsafe {
34 let __receiver = <BgmSelectPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 {
36 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
37 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
38 panic!(
39 "unity: virtual slot {}
40 out of range (vtable len {}
41) on the runtime class behind {}
42 (method `{}
43`)",
44 1usize,
45 __vt.len(),
46 <BgmSelectPlayer as ::unity::ClassIdentity>::NAME,
47 "Finalize",
48 )
49 });
50 let __inner: extern "C" fn(BgmSelectPlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
51 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52 __inner(__receiver, __mi)
53 }
54 }
55 }
56 #[doc = "`IsPlaying(::unity::Il2CppString)` overload"]
57 fn is_playing(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
58 unsafe {
59 let __receiver = <BgmSelectPlayer 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(6usize).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 6usize,
70 __vt.len(),
71 <BgmSelectPlayer as ::unity::ClassIdentity>::NAME,
72 "IsPlaying",
73 )
74 });
75 let __inner: extern "C" fn(BgmSelectPlayer, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
76 ::core::mem::transmute(__vi.method_ptr);
77 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
78 __inner(__receiver, ::core::convert::Into::into(event_name), __mi)
79 }
80 }
81 }
82 #[doc = "`PauseCurrentBgm()` overload"]
83 fn pause_current_bgm(self) -> () {
84 unsafe {
85 let __receiver = <BgmSelectPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 {
87 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
88 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
89 panic!(
90 "unity: virtual slot {}
91 out of range (vtable len {}
92) on the runtime class behind {}
93 (method `{}
94`)",
95 4usize,
96 __vt.len(),
97 <BgmSelectPlayer as ::unity::ClassIdentity>::NAME,
98 "PauseCurrentBgm",
99 )
100 });
101 let __inner: extern "C" fn(BgmSelectPlayer, ::unity::OptionalMethod) -> () = ::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, __mi)
104 }
105 }
106 }
107 #[doc = "`PlaySelect(::unity::Il2CppString)` overload"]
108 fn play_select(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
109 unsafe {
110 let __receiver = <BgmSelectPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 {
112 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
114 panic!(
115 "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120 8usize,
121 __vt.len(),
122 <BgmSelectPlayer as ::unity::ClassIdentity>::NAME,
123 "PlaySelect",
124 )
125 });
126 let __inner: extern "C" fn(BgmSelectPlayer, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
127 ::core::mem::transmute(__vi.method_ptr);
128 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
129 __inner(__receiver, ::core::convert::Into::into(event_name), __mi)
130 }
131 }
132 }
133 #[doc = "`Close()` overload"]
134 fn close(self) -> () {
135 unsafe {
136 let __receiver = <BgmSelectPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 {
138 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
139 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
140 panic!(
141 "unity: virtual slot {}
142 out of range (vtable len {}
143) on the runtime class behind {}
144 (method `{}
145`)",
146 11usize,
147 __vt.len(),
148 <BgmSelectPlayer as ::unity::ClassIdentity>::NAME,
149 "Close",
150 )
151 });
152 let __inner: extern "C" fn(BgmSelectPlayer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
153 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154 __inner(__receiver, __mi)
155 }
156 }
157 }
158 #[doc = "`.ctor()` overload"]
159 fn ctor(self) -> () {
160 unsafe {
161 let __receiver = <BgmSelectPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x1e95a60usize)as*mut u8,();
163(BgmSelectPlayer)__receiver)
164 }
165 }
166}
167
168#[cfg(feature = "app-bgmselectplayer")]
169impl<__T: IBgmSelectPlayer> IBgmSelectPlayerMethods for __T {}
170
171#[cfg(feature = "app-bgmselectplayer")]
172impl BgmSelectPlayer {
173 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
175 }
176
177 pub fn is_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
179 }
180
181 pub fn pause_current_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
183 }
184
185 pub fn play_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
187 }
188
189 pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
191 }
192
193 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
195 }
196}
197
198#[cfg(feature = "app-bgmselectplayer")]
199impl BgmSelectPlayer {
200 #[doc = "Direct (non-virtual) call to `BgmSelectPlayer`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
201 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
202 let __mi = Self::finalize_method_info();
203 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
204 __inner(this.into(), ::core::option::Option::None)
205 }
206
207 #[doc = "Direct (non-virtual) call to `BgmSelectPlayer`'s own `IsPlaying`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
208 pub unsafe fn is_playing(this: impl ::core::convert::Into<::unity::IlInstance>, event_name: ::unity::Il2CppString) -> bool {
209 let __mi = Self::is_playing_method_info();
210 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
211 ::core::mem::transmute(__mi.method_ptr);
212 __inner(this.into(), event_name, ::core::option::Option::None)
213 }
214
215 #[doc = "Direct (non-virtual) call to `BgmSelectPlayer`'s own `PauseCurrentBgm`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
216 pub unsafe fn pause_current_bgm(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
217 let __mi = Self::pause_current_bgm_method_info();
218 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
219 __inner(this.into(), ::core::option::Option::None)
220 }
221
222 #[doc = "Direct (non-virtual) call to `BgmSelectPlayer`'s own `PlaySelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
223 pub unsafe fn play_select(this: impl ::core::convert::Into<::unity::IlInstance>, event_name: ::unity::Il2CppString) -> () {
224 let __mi = Self::play_select_method_info();
225 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
226 ::core::mem::transmute(__mi.method_ptr);
227 __inner(this.into(), event_name, ::core::option::Option::None)
228 }
229
230 #[doc = "Direct (non-virtual) call to `BgmSelectPlayer`'s own `Close`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
231 pub unsafe fn close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
232 let __mi = Self::close_method_info();
233 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
234 __inner(this.into(), ::core::option::Option::None)
235 }
236}
237
238#[cfg(feature = "app-bgmselectplayer")]
239impl BgmSelectPlayer {
240 #[doc = "`.ctor()` — no args"]
241 pub fn new() -> Self {
242 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
243 panic!(
244 "{}
245::{}
246 failed to instantiate",
247 ::core::stringify!(BgmSelectPlayer),
248 ::core::stringify!(new),
249 )
250 });
251 <Self as IBgmSelectPlayerMethods>::ctor(this);
252 this
253 }
254}
255
256#[cfg(feature = "app-bgmselectplayer")]
257#[doc(hidden)]
258pub mod prelude {
259 pub use super::{BgmSelectPlayer, IBgmSelectPlayer, IBgmSelectPlayerMethods};
260 #[cfg(feature = "app-bgmplayer")]
261 pub use crate::app::bgmplayer::IBgmPlayerMethods;
262 #[cfg(feature = "system-object")]
263 pub use crate::system::object::IObjectMethods;
264 pub use crate::{app::bgmplayer::IBgmPlayer, system::object::IObject};
265}