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