engage/generated/root/
akrtpcplayablebehaviour.rs1#[cfg(feature = "root-akrtpcplayablebehaviour-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::playables::playablebehaviour::{IPlayableBehaviour, PlayableBehaviour},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akrtpcplayablebehaviour/AkRTPCPlayableBehaviour.md"))]
14 #[::unity::class(namespace = "", name = "AkRTPCPlayableBehaviour")]
15 #[parent(crate::unity_engine::playables::playablebehaviour::PlayableBehaviour)]
16 pub struct AkRTPCPlayableBehaviour {
17 #[offset(16)]
18 #[rename(name = "RTPCValue")]
19 pub rtpc_value: f32,
20 }
21}
22
23#[cfg(feature = "root-akrtpcplayablebehaviour-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akrtpcplayablebehaviour")]
27pub trait IAkRTPCPlayableBehaviourMethods: IAkRTPCPlayableBehaviour {
28 #[doc = "`set_setRTPCGlobally(bool)` overload"]
29 fn set_set_rtpc_globally(self, value: impl ::core::convert::Into<bool>) -> () {
30 unsafe {
31 let __receiver =
32 <AkRTPCPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x2f2fa50usize)as*mut u8,();
34(AkRTPCPlayableBehaviour)__receiver,(bool)::core::convert::Into::into(value))
35 }
36 }
37 #[doc = "`get_setRTPCGlobally()` overload"]
38 fn get_set_rtpc_globally(self) -> bool {
39 unsafe {
40 let __receiver =
41 <AkRTPCPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x2f2fa60usize)as*mut u8,bool;
43(AkRTPCPlayableBehaviour)__receiver)
44 }
45 }
46 #[doc = "`set_overrideTrackObject(bool)` overload"]
47 fn set_override_track_object(self, value: impl ::core::convert::Into<bool>) -> () {
48 unsafe {
49 let __receiver =
50 <AkRTPCPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2f2fa70usize)as*mut u8,();
52(AkRTPCPlayableBehaviour)__receiver,(bool)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`get_overrideTrackObject()` overload"]
56 fn get_override_track_object(self) -> bool {
57 unsafe {
58 let __receiver =
59 <AkRTPCPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2f2fa80usize)as*mut u8,bool;
61(AkRTPCPlayableBehaviour)__receiver)
62 }
63 }
64 #[doc = "`set_rtpcObject(crate::unity_engine::gameobject::GameObject)` overload"]
65 fn set_rtpc_object(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
66 unsafe {
67 let __receiver =
68 <AkRTPCPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69 ::unity::il2cpp_call!((::unity::module_base()+0x2f2fa90usize)as*mut u8,();
70(AkRTPCPlayableBehaviour)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
71 }
72 }
73 #[doc = "`get_rtpcObject()` overload"]
74 fn get_rtpc_object(self) -> crate::unity_engine::gameobject::GameObject {
75 unsafe {
76 let __receiver =
77 <AkRTPCPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x2f2faa0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
79(AkRTPCPlayableBehaviour)__receiver)
80 }
81 }
82 #[doc = "`ProcessFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData, crate::system::object::Object)` overload"]
83 fn process_frame(
84 self,
85 playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
86 info: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
87 player_data: impl ::core::convert::Into<crate::system::object::Object>,
88 ) -> () {
89 unsafe {
90 let __receiver =
91 <AkRTPCPlayableBehaviour 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(20usize).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 20usize,
102 __vt.len(),
103 <AkRTPCPlayableBehaviour as ::unity::ClassIdentity>::NAME,
104 "ProcessFrame",
105 )
106 });
107 let __inner: extern "C" fn(
108 AkRTPCPlayableBehaviour,
109 crate::unity_engine::playables::playable::Playable,
110 crate::unity_engine::playables::framedata::FrameData,
111 crate::system::object::Object,
112 ::unity::OptionalMethod,
113 ) -> () = ::core::mem::transmute(__vi.method_ptr);
114 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115 __inner(
116 __receiver,
117 ::core::convert::Into::into(playable),
118 ::core::convert::Into::into(info),
119 ::core::convert::Into::into(player_data),
120 __mi,
121 )
122 }
123 }
124 }
125 #[doc = "`.ctor()` overload"]
126 fn ctor(self) -> () {
127 unsafe {
128 let __receiver =
129 <AkRTPCPlayableBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x2f2fa40usize)as*mut u8,();
131(AkRTPCPlayableBehaviour)__receiver)
132 }
133 }
134}
135
136#[cfg(feature = "root-akrtpcplayablebehaviour")]
137impl<__T: IAkRTPCPlayableBehaviour> IAkRTPCPlayableBehaviourMethods for __T {}
138
139#[cfg(feature = "root-akrtpcplayablebehaviour")]
140impl AkRTPCPlayableBehaviour {
141 pub fn set_set_rtpc_globally_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
143 }
144
145 pub fn get_set_rtpc_globally_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
147 }
148
149 pub fn set_override_track_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
151 }
152
153 pub fn get_override_track_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
155 }
156
157 pub fn set_rtpc_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
159 }
160
161 pub fn get_rtpc_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
163 }
164
165 pub fn process_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
167 }
168
169 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
171 }
172}
173
174#[cfg(feature = "root-akrtpcplayablebehaviour")]
175impl AkRTPCPlayableBehaviour {
176 #[doc = "Direct (non-virtual) call to `AkRTPCPlayableBehaviour`'s own `ProcessFrame`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
177 pub unsafe fn process_frame(
178 this: impl ::core::convert::Into<::unity::IlInstance>,
179 playable: crate::unity_engine::playables::playable::Playable,
180 info: crate::unity_engine::playables::framedata::FrameData,
181 player_data: crate::system::object::Object,
182 ) -> () {
183 let __mi = Self::process_frame_method_info();
184 let __inner: extern "C" fn(
185 ::unity::IlInstance,
186 crate::unity_engine::playables::playable::Playable,
187 crate::unity_engine::playables::framedata::FrameData,
188 crate::system::object::Object,
189 ::unity::OptionalMethod,
190 ) -> () = ::core::mem::transmute(__mi.method_ptr);
191 __inner(this.into(), playable, info, player_data, ::core::option::Option::None)
192 }
193}
194
195#[cfg(feature = "root-akrtpcplayablebehaviour")]
196impl AkRTPCPlayableBehaviour {
197 #[doc = "`.ctor()` — no args"]
198 pub fn new() -> Self {
199 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
200 panic!(
201 "{}
202::{}
203 failed to instantiate",
204 ::core::stringify!(AkRTPCPlayableBehaviour),
205 ::core::stringify!(new),
206 )
207 });
208 <Self as IAkRTPCPlayableBehaviourMethods>::ctor(this);
209 this
210 }
211}
212
213#[cfg(feature = "root-akrtpcplayablebehaviour")]
214#[doc(hidden)]
215pub mod prelude {
216 pub use super::{AkRTPCPlayableBehaviour, IAkRTPCPlayableBehaviour, IAkRTPCPlayableBehaviourMethods};
217 #[cfg(feature = "system-object")]
218 pub use crate::system::object::IObjectMethods;
219 #[cfg(feature = "unity_engine-playables-playablebehaviour")]
220 pub use crate::unity_engine::playables::playablebehaviour::IPlayableBehaviourMethods;
221 pub use crate::{system::object::IObject, unity_engine::playables::playablebehaviour::IPlayableBehaviour};
222}