Skip to main content

engage/generated/root/
aktimelineeventplayable.rs

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