Skip to main content

engage/generated/root/
akeventplayable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akeventplayable-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            object_2::{IObject_2, Object_2},
12            playables::playableasset::{IPlayableAsset, PlayableAsset},
13            scriptableobject::{IScriptableObject, ScriptableObject},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akeventplayable/AkEventPlayable.md"))]
18    #[::unity::class(namespace = "", name = "AkEventPlayable")]
19    #[parent(crate::unity_engine::playables::playableasset::PlayableAsset)]
20    pub struct AkEventPlayable {
21        #[offset(32)]
22        #[rename(name = "blendInCurve")]
23        pub blend_in_curve: crate::root::akcurveinterpolation::AkCurveInterpolation,
24        #[offset(36)]
25        #[rename(name = "blendOutCurve")]
26        pub blend_out_curve: crate::root::akcurveinterpolation::AkCurveInterpolation,
27        #[offset(40)]
28        #[rename(name = "emitterObjectRef")]
29        pub emitter_object_ref: crate::unity_engine::exposedreference_1::ExposedReference_1<crate::unity_engine::gameobject::GameObject>,
30        #[offset(56)]
31        #[rename(name = "eventDurationMax")]
32        pub event_duration_max: f32,
33        #[offset(60)]
34        #[rename(name = "eventDurationMin")]
35        pub event_duration_min: f32,
36        #[offset(64)]
37        #[rename(name = "owningClip")]
38        pub owning_clip: crate::unity_engine::timeline::timelineclip::TimelineClip,
39        #[offset(72)]
40        #[rename(name = "retriggerEvent")]
41        pub retrigger_event: bool,
42        #[offset(73)]
43        #[rename(name = "UseWwiseEventDuration")]
44        pub use_wwise_event_duration: bool,
45        #[offset(74)]
46        #[rename(name = "StopEventAtClipEnd")]
47        pub stop_event_at_clip_end: bool,
48    }
49}
50
51#[cfg(feature = "root-akeventplayable-types")]
52pub use __types::*;
53
54#[cfg(feature = "root-akeventplayable")]
55pub trait IAkEventPlayableMethods: IAkEventPlayable {
56    #[doc = "`UnityEngine.Timeline.ITimelineClipAsset.get_clipCaps()` overload"]
57    fn unity_engine_timeline_i_timeline_clip_asset_get_clip_caps(self) -> crate::unity_engine::timeline::clipcaps::ClipCaps {
58        unsafe {
59            let __receiver = <AkEventPlayable 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(9usize).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                        9usize,
70                        __vt.len(),
71                        <AkEventPlayable as ::unity::ClassIdentity>::NAME,
72                        "UnityEngine.Timeline.ITimelineClipAsset.get_clipCaps",
73                    )
74                });
75                let __inner: extern "C" fn(AkEventPlayable, ::unity::OptionalMethod) -> crate::unity_engine::timeline::clipcaps::ClipCaps =
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, __mi)
79            }
80        }
81    }
82    #[doc = "`CreatePlayable(crate::unity_engine::playables::playablegraph::PlayableGraph, crate::unity_engine::gameobject::GameObject)` overload"]
83    fn create_playable(
84        self,
85        graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
86        owner: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
87    ) -> crate::unity_engine::playables::playable::Playable {
88        unsafe {
89            let __receiver = <AkEventPlayable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        6usize,
100                        __vt.len(),
101                        <AkEventPlayable as ::unity::ClassIdentity>::NAME,
102                        "CreatePlayable",
103                    )
104                });
105                let __inner: extern "C" fn(
106                    AkEventPlayable,
107                    crate::unity_engine::playables::playablegraph::PlayableGraph,
108                    crate::unity_engine::gameobject::GameObject,
109                    ::unity::OptionalMethod,
110                ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__vi.method_ptr);
111                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112                __inner(__receiver, ::core::convert::Into::into(graph), ::core::convert::Into::into(owner), __mi)
113            }
114        }
115    }
116    #[doc = "`.ctor()` overload"]
117    fn ctor(self) -> () {
118        unsafe {
119            let __receiver = <AkEventPlayable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2f1b2f0usize)as*mut u8,();
121(AkEventPlayable)__receiver)
122        }
123    }
124}
125
126#[cfg(feature = "root-akeventplayable")]
127impl<__T: IAkEventPlayable> IAkEventPlayableMethods for __T {}
128
129#[cfg(feature = "root-akeventplayable")]
130impl AkEventPlayable {
131    pub fn unity_engine_timeline_i_timeline_clip_asset_get_clip_caps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133    }
134
135    pub fn create_playable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137    }
138
139    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141    }
142}
143
144#[cfg(feature = "root-akeventplayable")]
145impl AkEventPlayable {
146    #[doc = "Direct (non-virtual) call to `AkEventPlayable`'s own `UnityEngine.Timeline.ITimelineClipAsset.get_clipCaps`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
147    pub unsafe fn unity_engine_timeline_i_timeline_clip_asset_get_clip_caps(
148        this: impl ::core::convert::Into<::unity::IlInstance>,
149    ) -> crate::unity_engine::timeline::clipcaps::ClipCaps {
150        let __mi = Self::unity_engine_timeline_i_timeline_clip_asset_get_clip_caps_method_info();
151        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::timeline::clipcaps::ClipCaps =
152            ::core::mem::transmute(__mi.method_ptr);
153        __inner(this.into(), ::core::option::Option::None)
154    }
155
156    #[doc = "Direct (non-virtual) call to `AkEventPlayable`'s own `CreatePlayable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
157    pub unsafe fn create_playable(
158        this: impl ::core::convert::Into<::unity::IlInstance>,
159        graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
160        owner: crate::unity_engine::gameobject::GameObject,
161    ) -> crate::unity_engine::playables::playable::Playable {
162        let __mi = Self::create_playable_method_info();
163        let __inner: extern "C" fn(
164            ::unity::IlInstance,
165            crate::unity_engine::playables::playablegraph::PlayableGraph,
166            crate::unity_engine::gameobject::GameObject,
167            ::unity::OptionalMethod,
168        ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__mi.method_ptr);
169        __inner(this.into(), graph, owner, ::core::option::Option::None)
170    }
171}
172
173#[cfg(feature = "root-akeventplayable")]
174impl AkEventPlayable {
175    #[doc = "`.ctor()` — no args"]
176    pub fn new() -> Self {
177        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
178            panic!(
179                "{}
180::{}
181 failed to instantiate",
182                ::core::stringify!(AkEventPlayable),
183                ::core::stringify!(new),
184            )
185        });
186        <Self as IAkEventPlayableMethods>::ctor(this);
187        this
188    }
189}
190
191#[cfg(feature = "root-akeventplayable")]
192#[doc(hidden)]
193pub mod prelude {
194    pub use super::{AkEventPlayable, IAkEventPlayable, IAkEventPlayableMethods};
195    #[cfg(feature = "system-object")]
196    pub use crate::system::object::IObjectMethods;
197    #[cfg(feature = "unity_engine-object_2")]
198    pub use crate::unity_engine::object_2::IObject_2Methods;
199    #[cfg(feature = "unity_engine-playables-playableasset")]
200    pub use crate::unity_engine::playables::playableasset::IPlayableAssetMethods;
201    #[cfg(feature = "unity_engine-scriptableobject")]
202    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
203    pub use crate::{
204        system::object::IObject,
205        unity_engine::{object_2::IObject_2, playables::playableasset::IPlayableAsset, scriptableobject::IScriptableObject},
206    };
207}