Skip to main content

engage/generated/root/
aktimelinertpctrack.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-aktimelinertpctrack-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            timeline::trackasset::{ITrackAsset, TrackAsset},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/aktimelinertpctrack/AkTimelineRtpcTrack.md"))]
19    #[::unity::class(namespace = "", name = "AkTimelineRtpcTrack")]
20    #[parent(crate::unity_engine::timeline::trackasset::TrackAsset)]
21    pub struct AkTimelineRtpcTrack {}
22}
23
24#[cfg(feature = "root-aktimelinertpctrack-types")]
25pub use __types::*;
26
27#[cfg(feature = "root-aktimelinertpctrack")]
28pub trait IAkTimelineRtpcTrackMethods: IAkTimelineRtpcTrack {
29    #[doc = "`CreateTrackMixer(crate::unity_engine::playables::playablegraph::PlayableGraph, crate::unity_engine::gameobject::GameObject, i32)` overload"]
30    fn create_track_mixer(
31        self,
32        graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
33        game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
34        input_count: impl ::core::convert::Into<i32>,
35    ) -> crate::unity_engine::playables::playable::Playable {
36        unsafe {
37            let __receiver = <AkTimelineRtpcTrack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(23usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        23usize,
48                        __vt.len(),
49                        <AkTimelineRtpcTrack as ::unity::ClassIdentity>::NAME,
50                        "CreateTrackMixer",
51                    )
52                });
53                let __inner: extern "C" fn(
54                    AkTimelineRtpcTrack,
55                    crate::unity_engine::playables::playablegraph::PlayableGraph,
56                    crate::unity_engine::gameobject::GameObject,
57                    i32,
58                    ::unity::OptionalMethod,
59                ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__vi.method_ptr);
60                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61                __inner(
62                    __receiver,
63                    ::core::convert::Into::into(graph),
64                    ::core::convert::Into::into(game_object),
65                    ::core::convert::Into::into(input_count),
66                    __mi,
67                )
68            }
69        }
70    }
71    #[doc = "`OnValidate()` overload"]
72    fn on_validate(self) -> () {
73        unsafe {
74            let __receiver = <AkTimelineRtpcTrack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x1d29350usize)as*mut u8,();
76(AkTimelineRtpcTrack)__receiver)
77        }
78    }
79    #[doc = "`.ctor()` overload"]
80    fn ctor(self) -> () {
81        unsafe {
82            let __receiver = <AkTimelineRtpcTrack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x1d295e0usize)as*mut u8,();
84(AkTimelineRtpcTrack)__receiver)
85        }
86    }
87}
88
89#[cfg(feature = "root-aktimelinertpctrack")]
90impl<__T: IAkTimelineRtpcTrack> IAkTimelineRtpcTrackMethods for __T {}
91
92#[cfg(feature = "root-aktimelinertpctrack")]
93impl AkTimelineRtpcTrack {
94    pub fn create_track_mixer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
96    }
97
98    pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
100    }
101
102    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
104    }
105}
106
107#[cfg(feature = "root-aktimelinertpctrack")]
108impl AkTimelineRtpcTrack {
109    #[doc = "Direct (non-virtual) call to `AkTimelineRtpcTrack`'s own `CreateTrackMixer`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
110    pub unsafe fn create_track_mixer(
111        this: impl ::core::convert::Into<::unity::IlInstance>,
112        graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
113        game_object: crate::unity_engine::gameobject::GameObject,
114        input_count: i32,
115    ) -> crate::unity_engine::playables::playable::Playable {
116        let __mi = Self::create_track_mixer_method_info();
117        let __inner: extern "C" fn(
118            ::unity::IlInstance,
119            crate::unity_engine::playables::playablegraph::PlayableGraph,
120            crate::unity_engine::gameobject::GameObject,
121            i32,
122            ::unity::OptionalMethod,
123        ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__mi.method_ptr);
124        __inner(this.into(), graph, game_object, input_count, ::core::option::Option::None)
125    }
126}
127
128#[cfg(feature = "root-aktimelinertpctrack")]
129impl AkTimelineRtpcTrack {
130    #[doc = "`.ctor()` — no args"]
131    pub fn new() -> Self {
132        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
133            panic!(
134                "{}
135::{}
136 failed to instantiate",
137                ::core::stringify!(AkTimelineRtpcTrack),
138                ::core::stringify!(new),
139            )
140        });
141        <Self as IAkTimelineRtpcTrackMethods>::ctor(this);
142        this
143    }
144}
145
146#[cfg(feature = "root-aktimelinertpctrack")]
147#[doc(hidden)]
148pub mod prelude {
149    pub use super::{AkTimelineRtpcTrack, IAkTimelineRtpcTrack, IAkTimelineRtpcTrackMethods};
150    #[cfg(feature = "system-object")]
151    pub use crate::system::object::IObjectMethods;
152    #[cfg(feature = "unity_engine-object_2")]
153    pub use crate::unity_engine::object_2::IObject_2Methods;
154    #[cfg(feature = "unity_engine-playables-playableasset")]
155    pub use crate::unity_engine::playables::playableasset::IPlayableAssetMethods;
156    #[cfg(feature = "unity_engine-scriptableobject")]
157    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
158    #[cfg(feature = "unity_engine-timeline-trackasset")]
159    pub use crate::unity_engine::timeline::trackasset::ITrackAssetMethods;
160    pub use crate::{
161        system::object::IObject,
162        unity_engine::{
163            object_2::IObject_2, playables::playableasset::IPlayableAsset, scriptableobject::IScriptableObject, timeline::trackasset::ITrackAsset,
164        },
165    };
166}