engage/generated/app/
scriptsound.rs1#[cfg(feature = "app-scriptsound-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::scriptutil::{IScriptUtil, ScriptUtil},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/scriptsound/ScriptSound.md"))]
14 #[::unity::class(namespace = "App", name = "ScriptSound")]
15 #[parent(crate::app::scriptutil::ScriptUtil)]
16 pub struct ScriptSound {}
17}
18
19#[cfg(feature = "app-scriptsound-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-scriptsound")]
23impl ScriptSound {
24 #[doc = "`SoundPostEvent(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
25 pub fn sound_post_event(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x1ed74e0usize)as*mut u8,();
28(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
29 }
30 }
31
32 #[doc = "`SetFieldPhaseBgm(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
33 pub fn set_field_phase_bgm(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
34 unsafe {
35 ::unity::il2cpp_call!((::unity::module_base()+0x1ed75e0usize)as*mut u8,();
36(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
37 }
38 }
39
40 #[doc = "`SetFieldBgmVolume(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
41 pub fn set_field_bgm_volume(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
42 unsafe {
43 ::unity::il2cpp_call!((::unity::module_base()+0x1ed76e0usize)as*mut u8,();
44(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
45 }
46 }
47
48 #[doc = "`PlayFieldBgm(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
49 pub fn play_field_bgm(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x1ed77c0usize)as*mut u8,();
52(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
53 }
54 }
55
56 #[doc = "`PauseFieldBgm(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
57 pub fn pause_field_bgm(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
58 unsafe {
59 ::unity::il2cpp_call!((::unity::module_base()+0x1ed7880usize)as*mut u8,();
60(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
61 }
62 }
63
64 #[doc = "`ResumeFieldBgm(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
65 pub fn resume_field_bgm(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
66 unsafe {
67 ::unity::il2cpp_call!((::unity::module_base()+0x1ed7940usize)as*mut u8,();
68(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
69 }
70 }
71
72 #[doc = "`SetFieldBgmWarSituation(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
73 pub fn set_field_bgm_war_situation(args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>) -> () {
74 unsafe {
75 ::unity::il2cpp_call!((::unity::module_base()+0x1ed7a00usize)as*mut u8,();
76(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
77 }
78 }
79
80 #[doc = "`Regist(crate::app::eventscript::EventScript)` overload"]
81 pub fn regist(script: impl ::core::convert::Into<crate::app::eventscript::EventScript>) -> () {
82 unsafe {
83 ::unity::il2cpp_call!((::unity::module_base()+0x1ed7ac0usize)as*mut u8,();
84(crate::app::eventscript::EventScript)::core::convert::Into::into(script))
85 }
86 }
87}
88
89#[cfg(feature = "app-scriptsound")]
90pub trait IScriptSoundMethods: IScriptSound {
91 #[doc = "`.ctor()` overload"]
92 fn ctor(self) -> () {
93 unsafe {
94 let __receiver = <ScriptSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x1ed7d00usize)as*mut u8,();
96(ScriptSound)__receiver)
97 }
98 }
99}
100
101#[cfg(feature = "app-scriptsound")]
102impl<__T: IScriptSound> IScriptSoundMethods for __T {}
103
104#[cfg(feature = "app-scriptsound")]
105impl ScriptSound {
106 pub fn sound_post_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
108 }
109
110 pub fn set_field_phase_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
112 }
113
114 pub fn set_field_bgm_volume_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
116 }
117
118 pub fn play_field_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
120 }
121
122 pub fn pause_field_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
124 }
125
126 pub fn resume_field_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
128 }
129
130 pub fn set_field_bgm_war_situation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
132 }
133
134 pub fn regist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
136 }
137
138 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
140 }
141}
142
143#[cfg(feature = "app-scriptsound")]
144impl ScriptSound {
145 #[doc = "`.ctor()` — no args"]
146 pub fn new() -> Self {
147 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148 panic!(
149 "{}
150::{}
151 failed to instantiate",
152 ::core::stringify!(ScriptSound),
153 ::core::stringify!(new),
154 )
155 });
156 <Self as IScriptSoundMethods>::ctor(this);
157 this
158 }
159}
160
161#[cfg(feature = "app-scriptsound")]
162#[doc(hidden)]
163pub mod prelude {
164 pub use super::{IScriptSound, IScriptSoundMethods, ScriptSound};
165 #[cfg(feature = "app-scriptutil")]
166 pub use crate::app::scriptutil::IScriptUtilMethods;
167 #[cfg(feature = "system-object")]
168 pub use crate::system::object::IObjectMethods;
169 pub use crate::{app::scriptutil::IScriptUtil, system::object::IObject};
170}