engage/generated/combat/
charactersound.rs1#[cfg(feature = "combat-charactersound-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/charactersound/CharacterSound.md"))]
19 #[::unity::class(namespace = "Combat", name = "CharacterSound")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CharacterSound {
22 #[offset(24)]
23 #[rename(name = "_cp")]
24 pub cp: crate::combat::character::Character,
25 #[offset(32)]
26 #[rename(name = "m_LoadObj")]
27 pub m_load_obj: crate::app::gamesound::GameSound_ResultLoad,
28 #[offset(40)]
29 #[rename(name = "m_VoiceID")]
30 pub m_voice_id: ::unity::Il2CppString,
31 #[offset(48)]
32 #[rename(name = "m_bLoaded")]
33 pub m_b_loaded: bool,
34 #[offset(49)]
35 #[rename(name = "m_bWinVoicePlayed")]
36 pub m_b_win_voice_played: bool,
37 #[offset(61)]
38 #[rename(name = "m_IsVoiceLoad")]
39 pub m_is_voice_load: bool,
40 }
41}
42
43#[cfg(feature = "combat-charactersound-types")]
44pub use __types::*;
45
46#[cfg(feature = "combat-charactersound")]
47impl CharacterSound {
48 #[doc = "`SelectWinVoice(crate::combat::character::Character)` overload"]
49 pub fn select_win_voice(chr: impl ::core::convert::Into<crate::combat::character::Character>) -> ::unity::Il2CppString {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x25f15c0usize)as*mut u8, ::unity::Il2CppString;
52(crate::combat::character::Character)::core::convert::Into::into(chr))
53 }
54 }
55}
56
57#[cfg(feature = "combat-charactersound")]
58pub trait ICharacterSoundMethods: ICharacterSound {
59 #[doc = "`get_CP()` overload"]
60 fn get_cp(self) -> crate::combat::character::Character {
61 unsafe {
62 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x25efef0usize)as*mut u8,crate::combat::character::Character;
64(CharacterSound)__receiver)
65 }
66 }
67 #[doc = "`get_VoiceCancelTimes()` overload"]
68 fn get_voice_cancel_times(self) -> i32 {
69 unsafe {
70 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x25effb0usize)as*mut u8,i32;
72(CharacterSound)__receiver)
73 }
74 }
75 #[doc = "`set_VoiceCancelTimes(i32)` overload"]
76 fn set_voice_cancel_times(self, value: impl ::core::convert::Into<i32>) -> () {
77 unsafe {
78 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x25effc0usize)as*mut u8,();
80(CharacterSound)__receiver,(i32)::core::convert::Into::into(value))
81 }
82 }
83 #[doc = "`get_WalkingSpeed()` overload"]
84 fn get_walking_speed(self) -> f32 {
85 unsafe {
86 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x25effd0usize)as*mut u8,f32;
88(CharacterSound)__receiver)
89 }
90 }
91 #[doc = "`set_WalkingSpeed(f32)` overload"]
92 fn set_walking_speed(self, value: impl ::core::convert::Into<f32>) -> () {
93 unsafe {
94 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x25effe0usize)as*mut u8,();
96(CharacterSound)__receiver,(f32)::core::convert::Into::into(value))
97 }
98 }
99 #[doc = "`get_IsMute()` overload"]
100 fn get_is_mute(self) -> bool {
101 unsafe {
102 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x25efff0usize)as*mut u8,bool;
104(CharacterSound)__receiver)
105 }
106 }
107 #[doc = "`set_IsMute(bool)` overload"]
108 fn set_is_mute(self, value: impl ::core::convert::Into<bool>) -> () {
109 unsafe {
110 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x25f0000usize)as*mut u8,();
112(CharacterSound)__receiver,(bool)::core::convert::Into::into(value))
113 }
114 }
115 #[doc = "`Start()` overload"]
116 fn start(self) -> () {
117 unsafe {
118 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x25f0010usize)as*mut u8,();
120(CharacterSound)__receiver)
121 }
122 }
123 #[doc = "`MyStart()` overload"]
124 fn my_start(self) -> () {
125 unsafe {
126 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x25f00b0usize)as*mut u8,();
128(CharacterSound)__receiver)
129 }
130 }
131 #[doc = "`OnDestroy()` overload"]
132 fn on_destroy(self) -> () {
133 unsafe {
134 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x25f0620usize)as*mut u8,();
136(CharacterSound)__receiver)
137 }
138 }
139 #[doc = "`get_IsVoiceReady()` overload"]
140 fn get_is_voice_ready(self) -> bool {
141 unsafe {
142 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x25f0760usize)as*mut u8,bool;
144(CharacterSound)__receiver)
145 }
146 }
147 #[doc = "`LoadVoice()` overload"]
148 fn load_voice(self) -> () {
149 unsafe {
150 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x25f0550usize)as*mut u8,();
152(CharacterSound)__receiver)
153 }
154 }
155 #[doc = "`UnloadVoice()` overload"]
156 fn unload_voice(self) -> () {
157 unsafe {
158 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x25f06c0usize)as*mut u8,();
160(CharacterSound)__receiver)
161 }
162 }
163 #[doc = "`Play(::unity::Il2CppString)` overload"]
164 fn play(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
165 unsafe {
166 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x25e5fa0usize)as*mut u8,();
168(CharacterSound)__receiver,(::unity::Il2CppString)::core::convert::Into::into(event_name))
169 }
170 }
171 #[doc = "`PlayWithDetail(::unity::Il2CppString)` overload"]
172 fn play_with_detail(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
173 unsafe {
174 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x25f0a30usize)as*mut u8,();
176(CharacterSound)__receiver,(::unity::Il2CppString)::core::convert::Into::into(event_name))
177 }
178 }
179 #[doc = "`PlayVoice(::unity::Il2CppString)` overload"]
180 fn play_voice(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
181 unsafe {
182 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x25f0be0usize)as*mut u8,();
184(CharacterSound)__receiver,(::unity::Il2CppString)::core::convert::Into::into(event_name))
185 }
186 }
187 #[doc = "`PlayVoice_ArenaName(::unity::Il2CppString)` overload"]
188 fn play_voice_arena_name(self, event_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
189 unsafe {
190 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x25f0e10usize)as*mut u8,();
192(CharacterSound)__receiver,(::unity::Il2CppString)::core::convert::Into::into(event_name))
193 }
194 }
195 #[doc = "`CalculateMobVoiceID()` overload"]
196 fn calculate_mob_voice_id(self) -> ::unity::Il2CppString {
197 unsafe {
198 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x25f0840usize)as*mut u8, ::unity::Il2CppString;
200(CharacterSound)__receiver)
201 }
202 }
203 #[doc = "`Footstep()` overload"]
204 fn footstep(self) -> () {
205 unsafe {
206 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x25f1040usize)as*mut u8,();
208(CharacterSound)__receiver)
209 }
210 }
211 #[doc = "`Swing()` overload"]
212 fn swing(self) -> () {
213 unsafe {
214 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x25f1150usize)as*mut u8,();
216(CharacterSound)__receiver)
217 }
218 }
219 #[doc = "`Flap()` overload"]
220 fn flap(self) -> () {
221 unsafe {
222 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x25f1250usize)as*mut u8,();
224(CharacterSound)__receiver)
225 }
226 }
227 #[doc = "`WeaponOpen()` overload"]
228 fn weapon_open(self) -> () {
229 unsafe {
230 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x25f12f0usize)as*mut u8,();
232(CharacterSound)__receiver)
233 }
234 }
235 #[doc = "`WeaponClose()` overload"]
236 fn weapon_close(self) -> () {
237 unsafe {
238 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x25f13b0usize)as*mut u8,();
240(CharacterSound)__receiver)
241 }
242 }
243 #[doc = "`Shoot()` overload"]
244 fn shoot(self) -> () {
245 unsafe {
246 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x25f1470usize)as*mut u8,();
248(CharacterSound)__receiver)
249 }
250 }
251 #[doc = "`PlayWinVoice()` overload"]
252 fn play_win_voice(self) -> () {
253 unsafe {
254 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x25f1570usize)as*mut u8,();
256(CharacterSound)__receiver)
257 }
258 }
259 #[doc = "`OnDie()` overload"]
260 fn on_die(self) -> () {
261 unsafe {
262 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 ::unity::il2cpp_call!((::unity::module_base()+0x25f1940usize)as*mut u8,();
264(CharacterSound)__receiver)
265 }
266 }
267 #[doc = "`.ctor()` overload"]
268 fn ctor(self) -> () {
269 unsafe {
270 let __receiver = <CharacterSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 ::unity::il2cpp_call!((::unity::module_base()+0x25f1c00usize)as*mut u8,();
272(CharacterSound)__receiver)
273 }
274 }
275}
276
277#[cfg(feature = "combat-charactersound")]
278impl<__T: ICharacterSound> ICharacterSoundMethods for __T {}
279
280#[cfg(feature = "combat-charactersound")]
281impl CharacterSound {
282 pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
284 }
285
286 pub fn get_voice_cancel_times_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
288 }
289
290 pub fn set_voice_cancel_times_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
292 }
293
294 pub fn get_walking_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
296 }
297
298 pub fn set_walking_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
300 }
301
302 pub fn get_is_mute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
304 }
305
306 pub fn set_is_mute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
308 }
309
310 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
312 }
313
314 pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
316 }
317
318 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
320 }
321
322 pub fn get_is_voice_ready_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
324 }
325
326 pub fn load_voice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
328 }
329
330 pub fn unload_voice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
332 }
333
334 pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
336 }
337
338 pub fn play_with_detail_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
340 }
341
342 pub fn play_voice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
344 }
345
346 pub fn play_voice_arena_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
348 }
349
350 pub fn calculate_mob_voice_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
352 }
353
354 pub fn footstep_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
356 }
357
358 pub fn swing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
360 }
361
362 pub fn flap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
364 }
365
366 pub fn weapon_open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
368 }
369
370 pub fn weapon_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
372 }
373
374 pub fn shoot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
376 }
377
378 pub fn play_win_voice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
380 }
381
382 pub fn on_die_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
384 }
385
386 pub fn select_win_voice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
388 }
389
390 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
392 }
393}
394
395#[cfg(feature = "combat-charactersound")]
396impl CharacterSound {
397 #[doc = "`.ctor()` — no args"]
398 pub fn new() -> Self {
399 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
400 panic!(
401 "{}
402::{}
403 failed to instantiate",
404 ::core::stringify!(CharacterSound),
405 ::core::stringify!(new),
406 )
407 });
408 <Self as ICharacterSoundMethods>::ctor(this);
409 this
410 }
411}
412
413#[cfg(feature = "combat-charactersound")]
414#[doc(hidden)]
415pub mod prelude {
416 pub use super::{CharacterSound, ICharacterSound, ICharacterSoundMethods};
417 #[cfg(feature = "system-object")]
418 pub use crate::system::object::IObjectMethods;
419 #[cfg(feature = "unity_engine-behaviour")]
420 pub use crate::unity_engine::behaviour::IBehaviourMethods;
421 #[cfg(feature = "unity_engine-component")]
422 pub use crate::unity_engine::component::IComponentMethods;
423 #[cfg(feature = "unity_engine-monobehaviour")]
424 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
425 #[cfg(feature = "unity_engine-object_2")]
426 pub use crate::unity_engine::object_2::IObject_2Methods;
427 pub use crate::{
428 system::object::IObject,
429 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
430 };
431}