engage/generated/app/
myroomvoicebehaviour.rs1#[cfg(feature = "app-myroomvoicebehaviour-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::playables::playablebehaviour::{IPlayableBehaviour, PlayableBehaviour},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomvoicebehaviour/MyRoomVoiceBehaviour.md"))]
14 #[::unity::class(namespace = "App", name = "MyRoomVoiceBehaviour")]
15 #[parent(crate::unity_engine::playables::playablebehaviour::PlayableBehaviour)]
16 pub struct MyRoomVoiceBehaviour {}
17}
18
19#[cfg(feature = "app-myroomvoicebehaviour-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-myroomvoicebehaviour")]
23pub trait IMyRoomVoiceBehaviourMethods: IMyRoomVoiceBehaviour {
24 #[doc = "`get_VoiceSituation()` overload"]
25 fn get_voice_situation(self) -> crate::app::gamesound::GameSound_WakeupVoiceSituation {
26 unsafe {
27 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x23a2660usize)as*mut u8,crate::app::gamesound::GameSound_WakeupVoiceSituation;
29(MyRoomVoiceBehaviour)__receiver)
30 }
31 }
32 #[doc = "`set_VoiceSituation(crate::app::gamesound::GameSound_WakeupVoiceSituation)` overload"]
33 fn set_voice_situation(self, value: impl ::core::convert::Into<crate::app::gamesound::GameSound_WakeupVoiceSituation>) -> () {
34 unsafe {
35 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x23a2670usize)as*mut u8,();
37(MyRoomVoiceBehaviour)__receiver,(crate::app::gamesound::GameSound_WakeupVoiceSituation)::core::convert::Into::into(value))
38 }
39 }
40 #[doc = "`get_Level()` overload"]
41 fn get_level(self) -> crate::app::reliancedata::RelianceData_Level {
42 unsafe {
43 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x23a2680usize)as*mut u8,crate::app::reliancedata::RelianceData_Level;
45(MyRoomVoiceBehaviour)__receiver)
46 }
47 }
48 #[doc = "`get_Pattern()` overload"]
49 fn get_pattern(self) -> crate::app::gamesound::GameSound_WakeupVoicePattern {
50 unsafe {
51 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x23a2700usize)as*mut u8,crate::app::gamesound::GameSound_WakeupVoicePattern;
53(MyRoomVoiceBehaviour)__receiver)
54 }
55 }
56 #[doc = "`get_Character()` overload"]
57 fn get_character(self) -> crate::combat::character::Character {
58 unsafe {
59 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x23a2780usize)as*mut u8,crate::combat::character::Character;
61(MyRoomVoiceBehaviour)__receiver)
62 }
63 }
64 #[doc = "`get_VoiceID()` overload"]
65 fn get_voice_id(self) -> ::unity::Il2CppString {
66 unsafe {
67 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x23a2800usize)as*mut u8, ::unity::Il2CppString;
69(MyRoomVoiceBehaviour)__receiver)
70 }
71 }
72 #[doc = "`get_EventName()` overload"]
73 fn get_event_name(self) -> ::unity::Il2CppString {
74 unsafe {
75 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x23a28c0usize)as*mut u8, ::unity::Il2CppString;
77(MyRoomVoiceBehaviour)__receiver)
78 }
79 }
80 #[doc = "`set_EventName(::unity::Il2CppString)` overload"]
81 fn set_event_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
82 unsafe {
83 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x23a28d0usize)as*mut u8,();
85(MyRoomVoiceBehaviour)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
86 }
87 }
88 #[doc = "`OnBehaviourPlay(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
89 fn on_behaviour_play(
90 self,
91 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
92 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
93 ) -> () {
94 unsafe {
95 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 {
97 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98 let __vi = *__vt.get(17usize).unwrap_or_else(|| {
99 panic!(
100 "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105 17usize,
106 __vt.len(),
107 <MyRoomVoiceBehaviour as ::unity::ClassIdentity>::NAME,
108 "OnBehaviourPlay",
109 )
110 });
111 let __inner: extern "C" fn(
112 MyRoomVoiceBehaviour,
113 crate::unity_engine::playables::playable::Playable,
114 crate::unity_engine::playables::framedata::FrameData,
115 ::unity::OptionalMethod,
116 ) -> () = ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
119 }
120 }
121 }
122 #[doc = "`OnBehaviourPause(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
123 fn on_behaviour_pause(
124 self,
125 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
126 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
127 ) -> () {
128 unsafe {
129 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 {
131 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
132 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
133 panic!(
134 "unity: virtual slot {}
135 out of range (vtable len {}
136) on the runtime class behind {}
137 (method `{}
138`)",
139 18usize,
140 __vt.len(),
141 <MyRoomVoiceBehaviour as ::unity::ClassIdentity>::NAME,
142 "OnBehaviourPause",
143 )
144 });
145 let __inner: extern "C" fn(
146 MyRoomVoiceBehaviour,
147 crate::unity_engine::playables::playable::Playable,
148 crate::unity_engine::playables::framedata::FrameData,
149 ::unity::OptionalMethod,
150 ) -> () = ::core::mem::transmute(__vi.method_ptr);
151 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
153 }
154 }
155 }
156 #[doc = "`.ctor()` overload"]
157 fn ctor(self) -> () {
158 unsafe {
159 let __receiver = <MyRoomVoiceBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 ::unity::il2cpp_call!((::unity::module_base()+0x23a2fc0usize)as*mut u8,();
161(MyRoomVoiceBehaviour)__receiver)
162 }
163 }
164}
165
166#[cfg(feature = "app-myroomvoicebehaviour")]
167impl<__T: IMyRoomVoiceBehaviour> IMyRoomVoiceBehaviourMethods for __T {}
168
169#[cfg(feature = "app-myroomvoicebehaviour")]
170impl MyRoomVoiceBehaviour {
171 pub fn get_voice_situation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
173 }
174
175 pub fn set_voice_situation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
177 }
178
179 pub fn get_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
181 }
182
183 pub fn get_pattern_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
185 }
186
187 pub fn get_character_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
189 }
190
191 pub fn get_voice_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
193 }
194
195 pub fn get_event_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
197 }
198
199 pub fn set_event_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
201 }
202
203 pub fn on_behaviour_play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
205 }
206
207 pub fn on_behaviour_pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
209 }
210
211 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
213 }
214}
215
216#[cfg(feature = "app-myroomvoicebehaviour")]
217impl MyRoomVoiceBehaviour {
218 #[doc = "Direct (non-virtual) call to `MyRoomVoiceBehaviour`'s own `OnBehaviourPlay`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
219 pub unsafe fn on_behaviour_play(
220 this: impl ::core::convert::Into<::unity::IlInstance>,
221 playable: crate::unity_engine::playables::playable::Playable,
222 info: crate::unity_engine::playables::framedata::FrameData,
223 ) -> () {
224 let __mi = Self::on_behaviour_play_method_info();
225 let __inner: extern "C" fn(
226 ::unity::IlInstance,
227 crate::unity_engine::playables::playable::Playable,
228 crate::unity_engine::playables::framedata::FrameData,
229 ::unity::OptionalMethod,
230 ) -> () = ::core::mem::transmute(__mi.method_ptr);
231 __inner(this.into(), playable, info, ::core::option::Option::None)
232 }
233
234 #[doc = "Direct (non-virtual) call to `MyRoomVoiceBehaviour`'s own `OnBehaviourPause`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
235 pub unsafe fn on_behaviour_pause(
236 this: impl ::core::convert::Into<::unity::IlInstance>,
237 playable: crate::unity_engine::playables::playable::Playable,
238 info: crate::unity_engine::playables::framedata::FrameData,
239 ) -> () {
240 let __mi = Self::on_behaviour_pause_method_info();
241 let __inner: extern "C" fn(
242 ::unity::IlInstance,
243 crate::unity_engine::playables::playable::Playable,
244 crate::unity_engine::playables::framedata::FrameData,
245 ::unity::OptionalMethod,
246 ) -> () = ::core::mem::transmute(__mi.method_ptr);
247 __inner(this.into(), playable, info, ::core::option::Option::None)
248 }
249}
250
251#[cfg(feature = "app-myroomvoicebehaviour")]
252impl MyRoomVoiceBehaviour {
253 #[doc = "`.ctor()` — no args"]
254 pub fn new() -> Self {
255 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
256 panic!(
257 "{}
258::{}
259 failed to instantiate",
260 ::core::stringify!(MyRoomVoiceBehaviour),
261 ::core::stringify!(new),
262 )
263 });
264 <Self as IMyRoomVoiceBehaviourMethods>::ctor(this);
265 this
266 }
267}
268
269#[cfg(feature = "app-myroomvoicebehaviour")]
270#[doc(hidden)]
271pub mod prelude {
272 pub use super::{IMyRoomVoiceBehaviour, IMyRoomVoiceBehaviourMethods, MyRoomVoiceBehaviour};
273 #[cfg(feature = "system-object")]
274 pub use crate::system::object::IObjectMethods;
275 #[cfg(feature = "unity_engine-playables-playablebehaviour")]
276 pub use crate::unity_engine::playables::playablebehaviour::IPlayableBehaviourMethods;
277 pub use crate::{system::object::IObject, unity_engine::playables::playablebehaviour::IPlayableBehaviour};
278}