1#[cfg(feature = "root-akeventplayablebehavior-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::playables::playablebehaviour::{IPlayableBehaviour, PlayableBehaviour},
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akeventplayablebehavior/AkEventPlayableBehavior_Actions.md"))]
18 #[repr(C)]
19 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20 pub struct AkEventPlayableBehavior_Actions {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for AkEventPlayableBehavior_Actions {
24 const NAME: &'static str = "AkEventPlayableBehavior.Actions";
25 const NAMESPACE: &'static str = "";
26
27 fn class() -> ::unity::Class {
28 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30 }
31 }
32 impl ::unity::IlType for AkEventPlayableBehavior_Actions {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl AkEventPlayableBehavior_Actions {
38 pub fn none() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn playback() -> Self {
43 Self { value: 1 }
44 }
45
46 pub fn retrigger() -> Self {
47 Self { value: 2 }
48 }
49
50 pub fn delayed_stop() -> Self {
51 Self { value: 4 }
52 }
53
54 pub fn seek() -> Self {
55 Self { value: 8 }
56 }
57
58 pub fn fade_in() -> Self {
59 Self { value: 16 }
60 }
61
62 pub fn fade_out() -> Self {
63 Self { value: 32 }
64 }
65 }
66
67 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akeventplayablebehavior/AkEventPlayableBehavior.md"))]
68 #[::unity::class(namespace = "", name = "AkEventPlayableBehavior")]
69 #[parent(crate::unity_engine::playables::playablebehaviour::PlayableBehaviour)]
70 pub struct AkEventPlayableBehavior {
71 #[offset(16)]
72 #[rename(name = "currentDuration")]
73 pub current_duration: f32,
74 #[offset(20)]
75 #[rename(name = "currentDurationProportion")]
76 pub current_duration_proportion: f32,
77 #[offset(24)]
78 #[rename(name = "eventIsPlaying")]
79 pub event_is_playing: bool,
80 #[offset(25)]
81 #[rename(name = "fadeinTriggered")]
82 pub fadein_triggered: bool,
83 #[offset(26)]
84 #[rename(name = "fadeoutTriggered")]
85 pub fadeout_triggered: bool,
86 #[offset(28)]
87 #[rename(name = "previousEventStartTime")]
88 pub previous_event_start_time: f32,
89 #[static_field]
90 #[rename(name = "CallbackFlags")]
91 pub callback_flags: u32,
92 #[offset(32)]
93 #[rename(name = "requiredActions")]
94 pub required_actions: crate::root::akeventplayablebehavior::AkEventPlayableBehavior_Actions,
95 #[static_field]
96 #[rename(name = "scrubPlaybackLengthMs")]
97 pub scrub_playback_length_ms: i32,
98 #[offset(48)]
99 #[rename(name = "eventDurationMax")]
100 pub event_duration_max: f32,
101 #[offset(52)]
102 #[rename(name = "eventDurationMin")]
103 pub event_duration_min: f32,
104 #[offset(56)]
105 #[rename(name = "blendInDuration")]
106 pub blend_in_duration: f32,
107 #[offset(60)]
108 #[rename(name = "blendOutDuration")]
109 pub blend_out_duration: f32,
110 #[offset(64)]
111 #[rename(name = "easeInDuration")]
112 pub ease_in_duration: f32,
113 #[offset(68)]
114 #[rename(name = "easeOutDuration")]
115 pub ease_out_duration: f32,
116 #[offset(72)]
117 #[rename(name = "blendInCurve")]
118 pub blend_in_curve: crate::root::akcurveinterpolation::AkCurveInterpolation,
119 #[offset(76)]
120 #[rename(name = "blendOutCurve")]
121 pub blend_out_curve: crate::root::akcurveinterpolation::AkCurveInterpolation,
122 #[offset(80)]
123 #[rename(name = "eventObject")]
124 pub event_object: crate::unity_engine::gameobject::GameObject,
125 #[offset(88)]
126 #[rename(name = "retriggerEvent")]
127 pub retrigger_event_field: bool,
128 #[offset(89)]
129 #[rename(name = "wasScrubbingAndRequiresRetrigger")]
130 pub was_scrubbing_and_requires_retrigger: bool,
131 #[offset(90)]
132 #[rename(name = "StopEventAtClipEnd")]
133 pub stop_event_at_clip_end: bool,
134 #[offset(91)]
135 #[rename(name = "overrideTrackEmitterObject")]
136 pub override_track_emitter_object: bool,
137 #[static_field]
138 #[rename(name = "alph")]
139 pub alph: f32,
140 }
141}
142
143#[cfg(feature = "root-akeventplayablebehavior-types")]
144pub use __types::*;
145
146#[cfg(feature = "root-akeventplayablebehavior")]
147pub trait IAkEventPlayableBehaviorMethods: IAkEventPlayableBehavior {
148 #[doc = "`CallbackHandler(crate::system::object::Object, crate::root::akcallbacktype::AkCallbackType, crate::root::akcallbackinfo::AkCallbackInfo)` overload"]
149 fn callback_handler(
150 self,
151 in_cookie: impl ::core::convert::Into<crate::system::object::Object>,
152 in_type: impl ::core::convert::Into<crate::root::akcallbacktype::AkCallbackType>,
153 in_info: impl ::core::convert::Into<crate::root::akcallbackinfo::AkCallbackInfo>,
154 ) -> () {
155 unsafe {
156 let __receiver =
157 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x2f1b390usize)as*mut u8,();
159(AkEventPlayableBehavior)__receiver,(crate::system::object::Object)::core::convert::Into::into(in_cookie),(crate::root::akcallbacktype::AkCallbackType)::core::convert::Into::into(in_type),(crate::root::akcallbackinfo::AkCallbackInfo)::core::convert::Into::into(in_info))
160 }
161 }
162 #[doc = "`IsScrubbing(crate::unity_engine::playables::framedata::FrameData)` overload"]
163 fn is_scrubbing(self, info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>) -> bool {
164 unsafe {
165 let __receiver =
166 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x2f1b4b0usize)as*mut u8,bool;
168(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::framedata::FrameData)::core::convert::Into::into(info))
169 }
170 }
171 #[doc = "`PrepareFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
172 fn prepare_frame(
173 self,
174 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
175 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
176 ) -> () {
177 unsafe {
178 let __receiver =
179 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 {
181 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
182 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
183 panic!(
184 "unity: virtual slot {}
185 out of range (vtable len {}
186) on the runtime class behind {}
187 (method `{}
188`)",
189 19usize,
190 __vt.len(),
191 <AkEventPlayableBehavior as ::unity::ClassIdentity>::NAME,
192 "PrepareFrame",
193 )
194 });
195 let __inner: extern "C" fn(
196 AkEventPlayableBehavior,
197 crate::unity_engine::playables::playable::Playable,
198 crate::unity_engine::playables::framedata::FrameData,
199 ::unity::OptionalMethod,
200 ) -> () = ::core::mem::transmute(__vi.method_ptr);
201 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
203 }
204 }
205 }
206 #[doc = "`OnBehaviourPlay(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
207 fn on_behaviour_play(
208 self,
209 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
210 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
211 ) -> () {
212 unsafe {
213 let __receiver =
214 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 {
216 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
217 let __vi = *__vt.get(17usize).unwrap_or_else(|| {
218 panic!(
219 "unity: virtual slot {}
220 out of range (vtable len {}
221) on the runtime class behind {}
222 (method `{}
223`)",
224 17usize,
225 __vt.len(),
226 <AkEventPlayableBehavior as ::unity::ClassIdentity>::NAME,
227 "OnBehaviourPlay",
228 )
229 });
230 let __inner: extern "C" fn(
231 AkEventPlayableBehavior,
232 crate::unity_engine::playables::playable::Playable,
233 crate::unity_engine::playables::framedata::FrameData,
234 ::unity::OptionalMethod,
235 ) -> () = ::core::mem::transmute(__vi.method_ptr);
236 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
237 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
238 }
239 }
240 }
241 #[doc = "`OnBehaviourPause(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData)` overload"]
242 fn on_behaviour_pause(
243 self,
244 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
245 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
246 ) -> () {
247 unsafe {
248 let __receiver =
249 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250 {
251 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
252 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
253 panic!(
254 "unity: virtual slot {}
255 out of range (vtable len {}
256) on the runtime class behind {}
257 (method `{}
258`)",
259 18usize,
260 __vt.len(),
261 <AkEventPlayableBehavior as ::unity::ClassIdentity>::NAME,
262 "OnBehaviourPause",
263 )
264 });
265 let __inner: extern "C" fn(
266 AkEventPlayableBehavior,
267 crate::unity_engine::playables::playable::Playable,
268 crate::unity_engine::playables::framedata::FrameData,
269 ::unity::OptionalMethod,
270 ) -> () = ::core::mem::transmute(__vi.method_ptr);
271 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
272 __inner(__receiver, ::core::convert::Into::into(playable), ::core::convert::Into::into(info), __mi)
273 }
274 }
275 }
276 #[doc = "`ProcessFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData, crate::system::object::Object)` overload"]
277 fn process_frame(
278 self,
279 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
280 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
281 player_data: impl ::core::convert::Into<crate::system::object::Object>,
282 ) -> () {
283 unsafe {
284 let __receiver =
285 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286 {
287 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
288 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
289 panic!(
290 "unity: virtual slot {}
291 out of range (vtable len {}
292) on the runtime class behind {}
293 (method `{}
294`)",
295 20usize,
296 __vt.len(),
297 <AkEventPlayableBehavior as ::unity::ClassIdentity>::NAME,
298 "ProcessFrame",
299 )
300 });
301 let __inner: extern "C" fn(
302 AkEventPlayableBehavior,
303 crate::unity_engine::playables::playable::Playable,
304 crate::unity_engine::playables::framedata::FrameData,
305 crate::system::object::Object,
306 ::unity::OptionalMethod,
307 ) -> () = ::core::mem::transmute(__vi.method_ptr);
308 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
309 __inner(
310 __receiver,
311 ::core::convert::Into::into(playable),
312 ::core::convert::Into::into(info),
313 ::core::convert::Into::into(player_data),
314 __mi,
315 )
316 }
317 }
318 }
319 #[doc = "`ShouldPlay(crate::unity_engine::playables::playable::Playable)` overload"]
320 fn should_play(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> bool {
321 unsafe {
322 let __receiver =
323 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x2f1b6a0usize)as*mut u8,bool;
325(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable))
326 }
327 }
328 #[doc = "`CheckForFadeInFadeOut(crate::unity_engine::playables::playable::Playable)` overload"]
329 fn check_for_fade_in_fade_out(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
330 unsafe {
331 let __receiver =
332 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333 ::unity::il2cpp_call!((::unity::module_base()+0x2f1b810usize)as*mut u8,();
334(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable))
335 }
336 }
337 #[doc = "`CheckForFadeOut(crate::unity_engine::playables::playable::Playable, f64)` overload"]
338 fn check_for_fade_out(
339 self,
340 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
341 current_clip_time: impl ::core::convert::Into<f64>,
342 ) -> () {
343 unsafe {
344 let __receiver =
345 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
346 ::unity::il2cpp_call!((::unity::module_base()+0x2f1b920usize)as*mut u8,();
347(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable),(f64)::core::convert::Into::into(current_clip_time))
348 }
349 }
350 #[doc = "`TriggerFadeIn(crate::unity_engine::playables::playable::Playable)` overload"]
351 fn trigger_fade_in(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
352 unsafe {
353 let __receiver =
354 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
355 ::unity::il2cpp_call!((::unity::module_base()+0x2f1c2a0usize)as*mut u8,();
356(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable))
357 }
358 }
359 #[doc = "`TriggerFadeOut(crate::unity_engine::playables::playable::Playable)` overload"]
360 fn trigger_fade_out(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
361 unsafe {
362 let __receiver =
363 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364 ::unity::il2cpp_call!((::unity::module_base()+0x2f1c3c0usize)as*mut u8,();
365(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable))
366 }
367 }
368 #[doc = "`StopEvent(i32)` overload"]
369 fn stop_event(self, transition: impl ::core::convert::Into<i32>) -> () {
370 unsafe {
371 let __receiver =
372 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373 ::unity::il2cpp_call!((::unity::module_base()+0x2f1bcd0usize)as*mut u8,();
374(AkEventPlayableBehavior)__receiver,(i32)::core::convert::Into::into(transition))
375 }
376 }
377 #[doc = "`PostEvent()` overload"]
378 fn post_event(self) -> bool {
379 unsafe {
380 let __receiver =
381 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382 ::unity::il2cpp_call!((::unity::module_base()+0x2f1c4b0usize)as*mut u8,bool;
383(AkEventPlayableBehavior)__receiver)
384 }
385 }
386 #[doc = "`PlayEvent()` overload"]
387 fn play_event(self) -> () {
388 unsafe {
389 let __receiver =
390 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
391 ::unity::il2cpp_call!((::unity::module_base()+0x2f1bfd0usize)as*mut u8,();
392(AkEventPlayableBehavior)__receiver)
393 }
394 }
395 #[doc = "`RetriggerEvent(crate::unity_engine::playables::playable::Playable)` overload"]
396 fn retrigger_event(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> () {
397 unsafe {
398 let __receiver =
399 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400 ::unity::il2cpp_call!((::unity::module_base()+0x2f1c170usize)as*mut u8,();
401(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable))
402 }
403 }
404 #[doc = "`GetProportionalTime(crate::unity_engine::playables::playable::Playable)` overload"]
405 fn get_proportional_time(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> f32 {
406 unsafe {
407 let __receiver =
408 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
409 ::unity::il2cpp_call!((::unity::module_base()+0x2f1bae0usize)as*mut u8,f32;
410(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable))
411 }
412 }
413 #[doc = "`SeekToTime(crate::unity_engine::playables::playable::Playable)` overload"]
414 fn seek_to_time(self, playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>) -> f32 {
415 unsafe {
416 let __receiver =
417 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
418 ::unity::il2cpp_call!((::unity::module_base()+0x2f1c0a0usize)as*mut u8,f32;
419(AkEventPlayableBehavior)__receiver,(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(playable))
420 }
421 }
422 #[doc = "`.ctor()` overload"]
423 fn ctor(self) -> () {
424 unsafe {
425 let __receiver =
426 <AkEventPlayableBehavior as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
427 ::unity::il2cpp_call!((::unity::module_base()+0x2f1c570usize)as*mut u8,();
428(AkEventPlayableBehavior)__receiver)
429 }
430 }
431}
432
433#[cfg(feature = "root-akeventplayablebehavior")]
434impl<__T: IAkEventPlayableBehavior> IAkEventPlayableBehaviorMethods for __T {}
435
436#[cfg(feature = "root-akeventplayablebehavior")]
437impl AkEventPlayableBehavior {
438 pub fn callback_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
440 }
441
442 pub fn is_scrubbing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
444 }
445
446 pub fn prepare_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
448 }
449
450 pub fn on_behaviour_play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
452 }
453
454 pub fn on_behaviour_pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
456 }
457
458 pub fn process_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
460 }
461
462 pub fn should_play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
464 }
465
466 pub fn check_for_fade_in_fade_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
468 }
469
470 pub fn check_for_fade_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
472 }
473
474 pub fn trigger_fade_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
476 }
477
478 pub fn trigger_fade_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
480 }
481
482 pub fn stop_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
484 }
485
486 pub fn post_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
488 }
489
490 pub fn play_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
492 }
493
494 pub fn retrigger_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
496 }
497
498 pub fn get_proportional_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
500 }
501
502 pub fn seek_to_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
504 }
505
506 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
508 }
509}
510
511#[cfg(feature = "root-akeventplayablebehavior")]
512impl AkEventPlayableBehavior {
513 #[doc = "Direct (non-virtual) call to `AkEventPlayableBehavior`'s own `PrepareFrame`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
514 pub unsafe fn prepare_frame(
515 this: impl ::core::convert::Into<::unity::IlInstance>,
516 playable: crate::unity_engine::playables::playable::Playable,
517 info: crate::unity_engine::playables::framedata::FrameData,
518 ) -> () {
519 let __mi = Self::prepare_frame_method_info();
520 let __inner: extern "C" fn(
521 ::unity::IlInstance,
522 crate::unity_engine::playables::playable::Playable,
523 crate::unity_engine::playables::framedata::FrameData,
524 ::unity::OptionalMethod,
525 ) -> () = ::core::mem::transmute(__mi.method_ptr);
526 __inner(this.into(), playable, info, ::core::option::Option::None)
527 }
528
529 #[doc = "Direct (non-virtual) call to `AkEventPlayableBehavior`'s own `OnBehaviourPlay`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
530 pub unsafe fn on_behaviour_play(
531 this: impl ::core::convert::Into<::unity::IlInstance>,
532 playable: crate::unity_engine::playables::playable::Playable,
533 info: crate::unity_engine::playables::framedata::FrameData,
534 ) -> () {
535 let __mi = Self::on_behaviour_play_method_info();
536 let __inner: extern "C" fn(
537 ::unity::IlInstance,
538 crate::unity_engine::playables::playable::Playable,
539 crate::unity_engine::playables::framedata::FrameData,
540 ::unity::OptionalMethod,
541 ) -> () = ::core::mem::transmute(__mi.method_ptr);
542 __inner(this.into(), playable, info, ::core::option::Option::None)
543 }
544
545 #[doc = "Direct (non-virtual) call to `AkEventPlayableBehavior`'s own `OnBehaviourPause`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
546 pub unsafe fn on_behaviour_pause(
547 this: impl ::core::convert::Into<::unity::IlInstance>,
548 playable: crate::unity_engine::playables::playable::Playable,
549 info: crate::unity_engine::playables::framedata::FrameData,
550 ) -> () {
551 let __mi = Self::on_behaviour_pause_method_info();
552 let __inner: extern "C" fn(
553 ::unity::IlInstance,
554 crate::unity_engine::playables::playable::Playable,
555 crate::unity_engine::playables::framedata::FrameData,
556 ::unity::OptionalMethod,
557 ) -> () = ::core::mem::transmute(__mi.method_ptr);
558 __inner(this.into(), playable, info, ::core::option::Option::None)
559 }
560
561 #[doc = "Direct (non-virtual) call to `AkEventPlayableBehavior`'s own `ProcessFrame`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
562 pub unsafe fn process_frame(
563 this: impl ::core::convert::Into<::unity::IlInstance>,
564 playable: crate::unity_engine::playables::playable::Playable,
565 info: crate::unity_engine::playables::framedata::FrameData,
566 player_data: crate::system::object::Object,
567 ) -> () {
568 let __mi = Self::process_frame_method_info();
569 let __inner: extern "C" fn(
570 ::unity::IlInstance,
571 crate::unity_engine::playables::playable::Playable,
572 crate::unity_engine::playables::framedata::FrameData,
573 crate::system::object::Object,
574 ::unity::OptionalMethod,
575 ) -> () = ::core::mem::transmute(__mi.method_ptr);
576 __inner(this.into(), playable, info, player_data, ::core::option::Option::None)
577 }
578}
579
580#[cfg(feature = "root-akeventplayablebehavior")]
581impl AkEventPlayableBehavior {
582 #[doc = "`.ctor()` — no args"]
583 pub fn new() -> Self {
584 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
585 panic!(
586 "{}
587::{}
588 failed to instantiate",
589 ::core::stringify!(AkEventPlayableBehavior),
590 ::core::stringify!(new),
591 )
592 });
593 <Self as IAkEventPlayableBehaviorMethods>::ctor(this);
594 this
595 }
596}
597
598#[cfg(feature = "root-akeventplayablebehavior")]
599#[doc(hidden)]
600pub mod prelude {
601 pub use super::{AkEventPlayableBehavior, AkEventPlayableBehavior_Actions, IAkEventPlayableBehavior, IAkEventPlayableBehaviorMethods};
602 #[cfg(feature = "system-object")]
603 pub use crate::system::object::IObjectMethods;
604 #[cfg(feature = "system-enum")]
605 pub use crate::system::r#enum::IEnumMethods;
606 #[cfg(feature = "system-valuetype")]
607 pub use crate::system::valuetype::IValueTypeMethods;
608 #[cfg(feature = "unity_engine-playables-playablebehaviour")]
609 pub use crate::unity_engine::playables::playablebehaviour::IPlayableBehaviourMethods;
610 pub use crate::{
611 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
612 unity_engine::playables::playablebehaviour::IPlayableBehaviour,
613 };
614}