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